mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 00:35:54 +00:00
Migrated player state machine
This commit is contained in:
parent
bb3cdefaa2
commit
9c3f22760b
19 changed files with 108 additions and 69 deletions
|
|
@ -37,7 +37,7 @@ public partial class PlayerMover : ChainActivable
|
|||
private async Task MovePlayer()
|
||||
{
|
||||
//_gameManager.Player.RequestMovementDisable(true);
|
||||
_gameManager.Player.SetState((int)PlayerState.Cutscene);
|
||||
_gameManager.Player.SetState(PlayerState.Cutscene);
|
||||
|
||||
Tween tween = GetTree().CreateTween();
|
||||
tween.SetEase(EaseType);
|
||||
|
|
@ -48,7 +48,7 @@ public partial class PlayerMover : ChainActivable
|
|||
await ToSignal(tween, "finished");
|
||||
|
||||
//_gameManager.Player.RequestMovementDisable(false);
|
||||
_gameManager.Player.SetState((int)PlayerState.Cutscene);
|
||||
_gameManager.Player.SetState(PlayerState.Cutscene);
|
||||
|
||||
ActivateTargets();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue