コード例 #1
0
ファイル: GameObjectAction.cs プロジェクト: 741645596/batgame
 public void AddAction(GameObjectAction action)
 {
     if (action != null)
     {
         m_list.Add(action);
         if (m_target != null)
         {
             action.SetTarget(m_target);
         }
     }
 }
コード例 #2
0
ファイル: GameObjectAction.cs プロジェクト: 741645596/batgame
 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);
         }
     }
 }