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