StateMachineController is a modular finite state machine (FSM) controller for Unity.
- Modular FSM system
- Pass custom arguments when changing states
- Supports multiple state machines
this.StateMachine.ChangeState(typeof(StatePlayerTurn));
SpellData spellData = new SpellData()
{
attackPower = 120,
coolDown = 5
};
this.StateMachine.ChangeState(typeof(StateCastingSpell), spellData);
this.StateMachine.ChangeStateMachine(typeof(BattleModeStateMachine), typeof(StateBattleStart));