示例#1
0
    public void Buy()
    {
        if (spice[Index] > minecraft_scroce)
        {
            UI_MessageBox.SetActive(true);
            UIBuy.SetActive(false);
            return;
        }

        UIBuy.SetActive(false);

        ItemsCount[Index]++;


        minecraft_scroce  -= spice[Index];
        Get_minecraft.text = minecraft_scroce.ToString();
    }