Example #1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Tank")
     {
         tankSoundController.PlayTankExplosionSound();
         Destroy(other.gameObject);
         Destroy(gameObject);
         lifeController.decrementNumOfLives();
         consecutiveHitController.ResetConsecutiveHits();
         airStrikeController.HideAirStrikeText();
     }
 }
 public void ResetConsecutiveHits()
 {
     consecutiveHits = 0;
     airStrikeController.HideAirStrikeText();
     UpdateConsecutiveHits();
 }