mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 08:05: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
|
|
@ -30,7 +30,7 @@ public partial class ControlEnemyEvent : EventResource
|
|||
if (_parent.GetNode<Node2D>(Target) is Enemy enemy)
|
||||
{
|
||||
_gameManager.CameraTargetObject(enemy);
|
||||
GameManager.Instance.Player.SetState((int)PlayerState.Controlling);
|
||||
GameManager.Instance.Player.SetState(PlayerState.Controlling);
|
||||
// _gameManager.Player.RequestMovementDisable(true);
|
||||
enemy.AssumeControl();
|
||||
// TODO: Do this on the enemy as a module instead
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue