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