Пример #1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.CompareTag("Player"))
     {
         gameObject.SetActive(false);
         hudmanager.UpdateScore(points);
     }
 }
Пример #2
0
 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.CompareTag("Player"))
     {
         gameObject.SetActive(false);
         HUD_Manager.UpdateScore(points);
         HUD_Manager.UpdateStats(JumpIncrease, SpeedIncrease);
     }
 }