Added: Unity scene and assets for AI state machine demo

This commit is contained in:
2026-11-05 18:29:57 +01:00
parent ad3a142d83
commit 05c3126e50
83 changed files with 8077 additions and 0 deletions
@@ -0,0 +1,35 @@
namespace AI.FSM
{
public interface IState
{
void Enter(IFiniteStateMachine fsm);
void Update(IFiniteStateMachine fsm);
void Exit(IFiniteStateMachine fsm);
}
// alternative
// public interface IStateEnter
// {
// void Enter(IFiniteStateMachine fsm);
// }
//
// public interface IStateUpdate
// {
// void Update(IFiniteStateMachine fsm);
// }
//
// public interface IStateExit
// {
// void Exit(IFiniteStateMachine fsm);
// }
// alternative for state change
// works, but not ideal
public enum States
{
Idle,
PlayerDetected,
PlayerInRange,
PlayerOutOfRange,
}
}