public void destroyAll() { for (int i = 0; i < this.drones.Count; i++) { DroneAbstract drn = drones[i] as DroneAbstract; drn.destroySelf(); } }
public void removeDrone(DroneAbstract drone) { this.drones.Remove(drone); if (getSize() <= 0) { StartCoroutine(EventHandler.Instance.waitSpawn()); } }
public void addDrone(DroneAbstract drone) { this.drones.Add(drone); }
// Will talk to the enemy script to deal damage to a specific enemy. void DealDamage(GameObject enemy) { DroneAbstract drone = enemy.GetComponent("DroneAbstract") as DroneAbstract; drone.getDamage(baseDamage * strength); }