Esempio n. 1
0
 void OnCollisionEnter(Collision col)
 {
     if (col.gameObject.tag == "obstacle")
     {
         TimeManager.slowMotion();
         Instantiate(boom, gameObject.transform.position, gameObject.transform.rotation);
         TimeManager.endGame();
         Destroy(gameObject);
         Destroy(col.gameObject);
     }
 }