mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-06 21:45:53 +00:00
36 lines
660 B
C#
36 lines
660 B
C#
|
|
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);
|
|||
|
|
}
|
|||
|
|
}
|