public void SetStartState(Enum name) { if (mStateDic.ContainsKey(name)) { mStartState = mStateDic[name]; } else { Debugger.LogError("No contain this StartState, Plaese add then state first"); } }
public void AddState(FSMStateBase <T, P> state) { mStateDic.Add(state.name, state); }