/// <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); }
/// <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); }