Esempio n. 1
0
        public void SetCurrentStateType(State.EStateType type)
        {
#if UNITY_EDITOR
            StateType = type;
#else
            stateMgr.SetStateType(type);
#endif
        }
Esempio n. 2
0
 virtual protected void UpdateDebugLogic()
 {
     if (stateType != StateType)
     {
         stateType = StateType;
         stateMgr.SetStateType(stateType);
     }
 }
Esempio n. 3
0
 public void SetStateType(State.EStateType type)
 {
     if (StateDictionary.ContainsKey(type))
     {
         SetState(StateDictionary[type]);
     }
     else
     {
         Debug.LogError("You need regist this state before use.");
     }
 }