Example #1
0
    public void BtnClickShowPanelInfoLuckyChest(int _index)
    {
        index = _index;

        if (index == 0)
        {
            iconPriceInfo.sprite = MenuController.instance.achievementAndDailyQuestPanel.rewardSps[1];
        }
        else
        {
            iconPriceInfo.sprite = MenuController.instance.achievementAndDailyQuestPanel.rewardSps[0];
        }

        priceTextInfo.text = "" + prices[index].ToString("#,0");
        //  iconChestInfo.sprite = iconImgs[index].sprite;
        nameItemText.text = packText[index].text;
        grids[index].SetActive(true);
        sc.content = grids[index].GetComponent <RectTransform>();

        PanelInfoLuckyChest.SetActive(true);

        sc.verticalNormalizedPosition = 1;

        SoundController.instance.PlaySound(soundGame.soundbtnclick);
    }
Example #2
0
    public void CloseInfoLuckyChest()
    {
        grids[index].SetActive(false);
        PanelInfoLuckyChest.SetActive(false);

        SoundController.instance.PlaySound(soundGame.soundbtnclick);
    }