mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 09:35:34 +00:00
18 lines
339 B
C#
18 lines
339 B
C#
using Godot;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
public partial class NavigationMap : NavigationRegion2D
|
|
{
|
|
public override void _Ready()
|
|
{
|
|
_ = RecalculateNavigation();
|
|
}
|
|
|
|
private async Task RecalculateNavigation()
|
|
{
|
|
await Task.Delay(300);
|
|
|
|
this.BakeNavigationPolygon();
|
|
}
|
|
}
|