SupaLidlGame/State/NPC/NPCStateMachine.cs

19 lines
365 B
C#
Raw Permalink Normal View History

2023-07-13 23:46:58 -07:00
using Godot;
namespace SupaLidlGame.State.NPC;
public partial class NPCStateMachine : StateMachine<NPCState>
{
[Export]
public override NPCState InitialState { get; set; }
public void Process(double delta)
{
var state = CurrentState.Process(delta);
if (state is NPCState s)
{
ChangeState(s);
}
}
}