Exemplo n.º 1
0
 public void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.GetComponent <Player>() != null)
     {
         Destroy(gameObject);
         StatsController.AddMoney(Cost * Player.CurrentMoneyBoostValue);
     }
 }