Files
gpd-925-en/AI/Assets/Scripts/FSM/IState.cs
T
david 10f61fd5d9 Added AI Unity project
Added FSM examples
2026-04-20 18:37:00 +02:00

34 lines
717 B
C#

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);
// }
// works, but not recommended
// public enum States
// {
// Idle,
// PlayerDetected,
// PlayerInRange,
// PlayerOutOfRange,
// }
}