mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 05:35:54 +00:00
FSM Test
This commit is contained in:
parent
36147f955d
commit
dfd9abe91b
5 changed files with 126 additions and 6 deletions
36
Scripts/Components/FSM/EnemyIdle.cs
Normal file
36
Scripts/Components/FSM/EnemyIdle.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue