Esempio n. 1
0
    public void OnClickedMapTheme(int index)
    {
        ShopItemUI.Status status = mapThemeUiList[index].curStatus;

        if (status == ShopItemUI.Status.Owned)
        {
            SelectAndApplyMapTheme(index);
        }
        else if (status == ShopItemUI.Status.Locked)
        {
            OpenBuyPrompt(ShopItemUI.Type.MapTheme, index);
        }
    }
Esempio n. 2
0
    public void OnClickedSkin(int index)
    {
        ShopItemUI.Status status = skinUiList[index].curStatus;

        if (status == ShopItemUI.Status.Owned)
        {
            SelectAndApplySkin(index);
        }
        else if (status == ShopItemUI.Status.Locked)
        {
            OpenBuyPrompt(ShopItemUI.Type.FrogSkin, index);
        }
    }