cirnogodot/Scripts/Components/FSM/PlayerFSMState.cs
2025-02-28 13:50:52 +01:00

15 lines
336 B
C#

using Godot;
namespace Cirno.Scripts.Components.FSM;
public abstract partial class PlayerFSMState : State
{
[Export]
public PlayerState State { get; private set; }
public override int StateId => (int)State;
protected void ChangeState(PlayerState newState)
{
_stateMachine.SetState((int)newState);
}
}