Exemplo n.º 1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.CompareTag("Player"))   //Turns off the player object and shows explosion on contact
     {
         playerDeathScript.PlayerDeathSequence(); //Begins the player death sequence, explosion.
         other.gameObject.SetActive(false);
         DisplayGameOver();
     }
 }