public void ExcuteState(T key) { if (_viewDic.ContainsKey(key)) { _fsm.ExcuteNewState(key); } else { DebugMsg.LogWarning("动作" + key + "不在当前动作缓存内"); } }
public virtual void ExcuteNewState(TAction label) { if (_actionHandlerDic.ContainsKey(label)) { _actionFsm.ExcuteNewState(label); } else if (_actionStateHandlers.ContainsKey(label)) { _actionStateFsm.ExcuteNewState(label); } else { DebugMsg.LogError("动作" + label + "不在当前动作缓存内"); } }