コード例 #1
0
    private void OnMouseDown()
    {
        int defenderCost = buttonsController.GetSelectedDefenderPrice();

        if (StarController.BuyIfEnoughStars(defenderCost))
        {
            Spawn();
        }
    }