Esempio n. 1
0
    public override void Show(Hashtable hash)
    {
        base.Show(hash);

        _ItemContainer.InitContentItem(Tables.TableReader.Recharge.Records.Values, BuyItem);

        GameCore.Instance.EventController.RegisteEvent(EVENT_TYPE.EVENT_LOGIC_IAP_SUCESS, IAPSucessHandle);
    }
Esempio n. 2
0
    public override void Show(Hashtable hash)
    {
        base.Show(hash);

        var gemList = (List <GemDataItem>)hash["GotGems"];

        _GotGemContainer.InitContentItem(gemList);
    }
Esempio n. 3
0
    private void RefreshItems()
    {
        List <GemDataItem> showGems = new List <GemDataItem>(GemDataPack.Instance._GemItems._PackItems);

        showGems.Sort((gemA, gemB) =>
        {
            if (gemA.GemRecord.Level > gemB.GemRecord.Level)
            {
                return(-1);
            }
            else if (gemA.GemRecord.Level < gemB.GemRecord.Level)
            {
                return(1);
            }
            else
            {
                return(0);
            }
        });
        _GemContainer.InitContentItem(showGems);
    }
Esempio n. 4
0
    private void RefreshWeapons()
    {
        List <WeaponDataItem> weaponList = null;

        if (_ShowTag == 1)
        {
            weaponList = new List <WeaponDataItem>();
            foreach (var weaponItem in WeaponDataPack.Instance._UnLockWeapons)
            {
                //if (weaponItem.IsGetWeapon())
                {
                    weaponList.Add(weaponItem);
                }
            }
        }
        else
        {
            weaponList = new List <WeaponDataItem>(WeaponDataPack.Instance._UnLockWeapons);
        }
        weaponList.Reverse();
        _WeaponContainer.InitContentItem(weaponList);
        RefreshBtn();
    }