Beispiel #1
0
 private void OnCollisionEnter(Collision collision)
 {
     if (collision.gameObject.tag == "Player")
     {
         HUD.AddCoins();
         Destroy(gameObject);
     }
 }