mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
22 lines
No EOL
406 B
C#
22 lines
No EOL
406 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);
|
|
}
|
|
}
|
|
|
|
public enum PlayerState
|
|
{
|
|
Idle,
|
|
Walking,
|
|
Cutscene
|
|
} |