Beispiel #1
0
 void OnTriggerEnter(Collider collider)
 {
     if (collider.tag == "Player")
     {
         Instantiate(explosion, transform.position, transform.rotation);
         gameController.LoseAllLifes();
         Destroy(collider.gameObject);
         return;
     }
     Instantiate(explosion, transform.position, transform.rotation);
     Destroy(collider.gameObject);
 }