예제 #1
0
    public void GiveMoney()
    {
        playerScript.AddCoins(costOfItems);
        moneyObject.SetActive(false);

        foreach (var item in stuffToSell)
        {
            Destroy(item);
        }

        stuffToSell.Clear();
        showPrice.SetText("SELL\n\nHERE");
        playerScript.SavePlayer();
        costOfItems = 0;
    }