This commit is contained in:
Maddo 2025-02-28 13:50:52 +01:00
commit af46098aca
9 changed files with 414 additions and 145 deletions

View file

@ -5,18 +5,11 @@ namespace Cirno.Scripts.Components.FSM;
public abstract partial class PlayerFSMState : State
{
[Export]
public PlayerState State { get; private set; }
public PlayerState State { get; private set; }
public override int StateId => (int)State;
protected void ChangeState(PlayerState newState)
{
_stateMachine.SetState((int)newState);
}
}
public enum PlayerState
{
Idle,
Walking,
Cutscene
}