Beispiel #1
0
    public void RefreshUnLock()
    {
        foreach (var tabWeaponRecord in TableReader.Weapon.Records.Values)
        {
            if (StageDataPack.Instance.CurIdx < tabWeaponRecord.UnLockLevel)
            //if (200 < tabWeaponRecord.UnLockLevel)
            {
                continue;
            }

            if (string.IsNullOrEmpty(_SelectedWeapon))
            {
                _SelectedWeapon = tabWeaponRecord.Id;
            }

            var findItem = GetWeaponItem(tabWeaponRecord.Id);
            if (findItem != null)
            {
                continue;
            }

            WeaponDataItem weaponItem = new WeaponDataItem();
            weaponItem.ItemDataID = tabWeaponRecord.Id;
            weaponItem.Level      = 0;
            if (weaponItem.WeaponRecord.Price == 0)
            {
                weaponItem.Level = 1;
            }
            _UnLockWeapons.Add(weaponItem);
        }

        UIMainFun.ShowRedTip();
    }
Beispiel #2
0
    public void StartLogic()
    {
        UIStageSelect.ShowAsyn();
        UIMainFun.ShowAsyn();

        PurchManager.Instance.InitIAPInfo();

        GameCore.Instance._SoundManager.PlayBGMusic(GameCore.Instance._SoundManager._LogicAudio);
    }
Beispiel #3
0
    public void ExitFight()
    {
        GameCore.Instance.UIManager.DestoryAllUI();

        UIStageSelect.ShowAsyn();
        UIMainFun.ShowAsyn();

        GameCore.Instance._SoundManager.PlayBGMusic(GameCore.Instance._SoundManager._LogicAudio);
    }
Beispiel #4
0
    public GemDataItem AddRandomGem(int level)
    {
        var randomItem = GetRandomGemItem(level);

        _GemItems.AddItem(randomItem);

        //_GemItems.SaveClass(true);

        UIMainFun.ShowRedTip();
        return(randomItem);
    }