Finishing up basic pathfinding? later down the line will want to implement warping

This commit is contained in:
2026-06-23 03:14:49 -04:00
parent 1903e1a1aa
commit 2cf3428b8c
6 changed files with 142 additions and 129 deletions
+4 -4
View File
@@ -37,7 +37,7 @@ public partial class Main : Node
base._Process(delta);
if (Input.IsActionJustPressed("escape"))
{
EndGame(_playerController);
}
if (Input.IsActionJustPressed("changeTurn"))
{
@@ -48,18 +48,18 @@ public partial class Main : Node
}
}
public void ChangeTurn()
public async void ChangeTurn()
{
if (_turnController != _playerController)
{
_turnController = _playerController;
_playerController.StartTurn();
await _playerController.StartTurn();
}
else
{
_turnController = _enemyController;
_enemyController.StartTurn();
await _enemyController.StartTurn();
}
}