cirnogodot/Scripts/Components/FSM/PlayerStateMachine.cs

17 lines
317 B
C#
Raw Normal View History

2025-02-28 13:50:52 +01:00
using System;
using Godot;
namespace Cirno.Scripts.Components.FSM;
public partial class PlayerStateMachine : ActorStateMachine
{
2025-02-28 19:59:36 +01:00
[Export]
public PlayerState InitialState { get; private set; }
2025-02-28 13:50:52 +01:00
public override void _Ready()
{
base._Ready();
2025-02-28 19:59:36 +01:00
this.SetState((int)InitialState);
2025-02-28 13:50:52 +01:00
}
}