예제 #1
0
 public static void RemoveShieldGenerators()
 {
     for (int i = 0; i < ShieldGeneratorList.Count; i++)
     {
         ShieldGeneratorList[i].Remove();
     }
     ShieldGeneratorList.Clear();
 }
예제 #2
0
 public static void UpdateShieldGenerators()
 {
     for (int i = 0; i < ShieldGeneratorList.Count; i++)
     {
         ShieldGeneratorList[i].Update();
         if (ShieldGeneratorList[i].CoreObject == null)
         {
             ShieldGeneratorList.RemoveAt(i);
             i--;
         }
     }
 }
예제 #3
0
        public static void CreateShieldGenerator(int power, Vector2 position, float radius, PlayerTeam team)
        {
            TShieldGenerator generator = new TShieldGenerator(power, position, radius, team);

            ShieldGeneratorList.Add(generator);
        }