Exemplo n.º 1
0
 override public void TakeBonus()
 {
     foreach (EnemyMovement enemyMovement in FindObjectsOfType <EnemyMovement>())
     {
         tankHealth = enemyMovement.gameObject.GetComponent <TankHealth>();
         spawnBonus.OnRemoveTankHealth(tankHealth);
         tankHealth.KillThis();
     }
     Debug.Log("EXPLOSION!!!!");
 }