Files
gpd-924/AI/Assets/Scripts/FSM/IState.cs
T
david 19a08085fe add unity project
add example for FSM
2025-04-08 13:03:11 +02:00

25 lines
553 B
C#

namespace DefaultNamespace.FSM
{
public interface IState
{
void Enter(IFiniteStateMachine ctx);
void Update(IFiniteStateMachine ctx);
void Exit(IFiniteStateMachine ctx);
}
// alternative
// public interface IStateEnter
// {
// void Enter(IFiniteStateMachine ctx);
// }
//
// public interface IStateUpdate
// {
// void Update(IFiniteStateMachine ctx);
// }
//
// public interface IStateExit
// {
// void Exit(IFiniteStateMachine ctx);
// }
}