Пример #1
0
 public bool AddAttackFx(AttackEffect attack)
 {
     for (int i = 0; i < attackFx.Length; i++){
         if (attackFx[i] == null){
             attackFx[i] = attack;
             return true;
         }
     }
     return false;
 }
Пример #2
0
 public bool AddAttackFx(AttackEffect attack)
 {
     for (int i = 0; i < attackFx.Length; i++)
     {
         if (attackFx[i] == null)
         {
             attackFx[i] = attack;
             return(true);
         }
     }
     return(false);
 }