public void AddAction(GameObjectAction action) { if (action != null) { m_list.Add(action); if (m_target != null) { action.SetTarget(m_target); } } }
public void AddAction(GameObjectAction action) { if (action != null) { m_list.Add(action); if (GetLeftTime() < action.GetLeftTime()) { m_Duration += action.GetLeftTime() - GetLeftTime(); } if (m_target != null) { action.SetTarget(m_target); } } }