Esempio n. 1
0
 private void OnCollisionEnter(Collision other)
 {
     if (other.gameObject.tag == "Player" && coinBool)
     {
         Destroy(gameObject);
         myCoinController.UpdateCoins();
     }
 }