public void AddAction(PEAction action) { if (!HasAction(action.ActionType)) { m_ActionDic[(int)action.ActionType] = action; action.motionMgr = this; } }
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(); }