Beispiel #1
0
 void OnCollisionEnter(Collision col)
 {
     if (col.gameObject.tag == "Player")
     {
         moneyManager.AddCoinsToTotal(1);
         GameObject.Destroy(this.gameObject);
     }
 }