Exemplo n.º 1
0
 public void AddAction(GameObjectAction action)
 {
     if (action != null)
     {
         m_list.Add(action);
         if (m_target != null)
         {
             action.SetTarget(m_target);
         }
     }
 }
Exemplo n.º 2
0
 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);
         }
     }
 }