Пример #1
0
 public void AddAction(PEAction action)
 {
     if (!HasAction(action.ActionType))
     {
         m_ActionDic[(int)action.ActionType] = action;
         action.motionMgr = this;
     }
 }
Пример #2
0
            public void Do(PEAction action, ActionRelationData relationData, PEActionParam para, bool doImmediately = false)
            {
                m_Action       = action;
                m_RelationData = relationData;
                m_Para         = para;
                m_WaitRelation = !doImmediately;
                m_DoAction     = true;

                action.PreDoAction();

                CheckRelation(doImmediately);

                TryDoAction();
            }