示例#1
0
 public CharacterStateType ChangeByState(CharacterEditorStateData dt, CharacterStateType state)
 {
     if (IsStateExist(state) || state == CharacterStateType.ENTER_SCENE || state == CharacterStateType.UNDEFINE)
     {
         //Debug.Log("error state or exist state");
         return(dt.m_oldStateType);
     }
     dt.Init(state);
     return(state);
 }
示例#2
0
    public void AddNewState(CharacterStateType state)
    {
        if (IsStateExist(state))
        {
            return;
        }
        CharacterEditorStateData dt = new CharacterEditorStateData();

        dt.Init(state);
        m_lsStates.Add(dt);
    }