Esempio n. 1
0
 public void OnTriggerEnter2D(Collider2D coll)
 {
     if (coll.GetComponent <PlayerBehavior> () == null)
     {
         return;
     }
     ScoreCounter.AddCoins(coinValue);
     Destroy(gameObject);
 }