示例#1
0
 public void destroyAll()
 {
     for (int i = 0; i < this.drones.Count; i++)
     {
         DroneAbstract drn = drones[i] as DroneAbstract;
         drn.destroySelf();
     }
 }
示例#2
0
 public void removeDrone(DroneAbstract drone)
 {
     this.drones.Remove(drone);
     if (getSize() <= 0)
     {
         StartCoroutine(EventHandler.Instance.waitSpawn());
     }
 }
示例#3
0
 public void addDrone(DroneAbstract drone)
 {
     this.drones.Add(drone);
 }
示例#4
0
    // 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);
    }