Beispiel #1
0
 private void OnTriggerEnter(Collider other)
 {
     //When an oxygen character is hit, increase the amount of oxygen collected and then destroy the oxygen
     if (other == m_Player)
     {
         m_MainController.IncreaseOxygen();
         StartCoroutine(DestroyObject());
     }
 }