Migrated player state machine

This commit is contained in:
Marco 2025-03-05 10:55:14 +01:00
commit 9c3f22760b
19 changed files with 108 additions and 69 deletions

View file

@ -35,6 +35,11 @@ public abstract partial class BaseState<TKey, TType> : Node2D, IState<TKey, TTyp
}
}
protected void ChangeState(TKey newState)
{
_stateMachine.SetState(newState);
}
public abstract void EnterState();
public abstract void ExitState();