This commit is contained in:
Marco 2025-02-25 15:54:51 +01:00
commit dfd9abe91b
5 changed files with 126 additions and 6 deletions

View file

@ -0,0 +1,36 @@
using Godot;
namespace Cirno.Scripts.Components.FSM;
public partial class EnemyIdle : State
{
//[Export]
//public EnemyState State { get; private set; }
public override int StateId => (int)EnemyState.Idle;
public override void EnterState()
{
}
public override void ExitState()
{
}
public override void ProcessState(double delta)
{
}
public override void PhysicsProcessState(double delta)
{
// Scan for player
// Wait for alarms
}
protected void ChangeState(EnemyState newState)
{
_stateMachine.SetState((int)newState);
}
}