Finishing up basic pathfinding? later down the line will want to implement warping
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user