Exemplo n.º 1
0
 public void ExcuteState(T key)
 {
     if (_viewDic.ContainsKey(key))
     {
         _fsm.ExcuteNewState(key);
     }
     else
     {
         DebugMsg.LogWarning("动作" + key + "不在当前动作缓存内");
     }
 }
Exemplo n.º 2
0
 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 + "不在当前动作缓存内");
     }
 }