private void OnMouseDown() { int defenderCost = buttonsController.GetSelectedDefenderPrice(); if (StarController.BuyIfEnoughStars(defenderCost)) { Spawn(); } }