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(); }
public void StartLogic() { UIStageSelect.ShowAsyn(); UIMainFun.ShowAsyn(); PurchManager.Instance.InitIAPInfo(); GameCore.Instance._SoundManager.PlayBGMusic(GameCore.Instance._SoundManager._LogicAudio); }
public void ExitFight() { GameCore.Instance.UIManager.DestoryAllUI(); UIStageSelect.ShowAsyn(); UIMainFun.ShowAsyn(); GameCore.Instance._SoundManager.PlayBGMusic(GameCore.Instance._SoundManager._LogicAudio); }
public GemDataItem AddRandomGem(int level) { var randomItem = GetRandomGemItem(level); _GemItems.AddItem(randomItem); //_GemItems.SaveClass(true); UIMainFun.ShowRedTip(); return(randomItem); }