Exemple #1
0
        public void addState(IState s)
        {
            IState tmpstate = this.GetState(s.GetState());

            if (tmpstate == null)
            {
                this.stateList.Add(s);
                s.setBelongTO(this);
            }
            else
            {
                Debug.LogWarningFormat("FSMSystem(容错):该状态【{0}】已经存在!", s.GetState().ToString());
            }
        }