Пример #1
0
 private void OnCollisionEnter(Collision other)
 {
     //Check for collision with objects with tag
     if (other.gameObject.tag == "Dangerous_Object")
     {
         //Save data of this round and show restart screen
         SaveData();
         ingameUI.RestartScreen();
     }
 }