Exemple #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         Destroy(gameObject);
         GBS.cur_coins--;
         //adding score...
         GBS.UpdateUI();
     }
 }