Esempio n. 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.layer == 8 || other.gameObject.layer == 9)
     {
         Destroy(other.gameObject);
         scoreHandling.DecreaseScore(50);
         scoreHandling.ResetComboFactor();
     }
 }
 private void CollisionDetection_HeadsetCollisionDetect(object sender, VRTK.HeadsetCollisionEventArgs e)
 {
     ScoreHandling.ResetComboFactor();
     ScoreHandling.DecreaseScore(20);
 }