Example #1
0
 /// <summary>
 /// Adds a state to the machine
 /// </summary>
 public void AddState(State <T> state)
 {
     UnityEngine.Debug.Assert(state != null, "New state is null");
     states[state.GetType()] = state;
     state.SetMachine(this);
 }