Files
gpd-925/AI/Assets/Scripts/FSM/IState.cs
T
2026-04-20 12:49:00 +02:00

35 lines
730 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,
// Chase,
// PlayerDetected,
// PlayerIsClose,
// PlayerIsNotClose
// }
}