예제 #1
0
    public void BuyBoot()
    {
        if (!playerMoney.CheckEnoughMoney(bootPrice))
        {
            return;
        }

        if (itemManager.AddItem(new SpeedBoost(speedBoostSprite)))
        {
            playerMoney.UseMoney(bootPrice);
        }
    }