Пример #1
0
 public void ApplyEffects()
 {
     for (int i = 0; i < m_Boosts.Count; i++)
     {
         if (m_Boosts[i].IsInEffect)
         {
             if (m_Boosts[i].Effects != null)
             {
                 List <Boost.Effect> tBoardEffects = m_Boosts[i].Effects;
                 if (tBoardEffects != null)
                 {
                     for (int k = 0; k < tBoardEffects.Count; k++)
                     {
                         BaseEffect tBaseEffect = BaseEffect.GetEffectObject(tBoardEffects[k].Type, tBoardEffects[k].EffectToRun);
                         tBaseEffect.Effect(m_pBoard);
                     }
                 }
             }
         }
     }
 }