0312 修复淘金自动刷新和战斗速度存储冲突问题;优化处理装备后再触发下引导
| | |
| | | get
|
| | | {
|
| | | //第十个数用于存储是否开启自动刷新,其他数用于存储物品等级
|
| | | var value = QuickSetting.Instance.GetQuickSettingValue<int>(QuickSettingType.AutoGoldRush, 10);
|
| | | var value = QuickSetting.Instance.GetQuickSettingValue<int>(QuickSettingType.AutoGoldRush, 9);
|
| | | return value == 0;
|
| | | }
|
| | | set
|
| | | {
|
| | | QuickSetting.Instance.SetQuickSetting<int>(QuickSettingType.AutoGoldRush, Convert.ToInt32(!value), 10);
|
| | | QuickSetting.Instance.SetQuickSetting<int>(QuickSettingType.AutoGoldRush, Convert.ToInt32(!value), 9);
|
| | |
|
| | | QuickSetting.Instance.SendPackage();
|
| | | }
|
| | |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using Cysharp.Threading.Tasks; |
| | | using DG.Tweening; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | |
| | | // var battleWin = UIManager.Instance.OpenWindow<BattleWin>(); |
| | | // battleWin.SetBattleField(BattleManager.Instance.storyBattleField); |
| | | |
| | | if (!SoundPlayer.Instance.IsPlayBackGroundMuisic()) |
| | | SoundPlayer.Instance.PlayBackGroundMusic(38); |
| | | DelayPlayMusic().Forget(); |
| | | } |
| | | |
| | | |
| | |
| | | officialTip.SetActive(OfficialRankManager.Instance.CanOfficialLVUP()); |
| | | } |
| | | |
| | | async UniTask DelayPlayMusic() |
| | | { |
| | | await UniTask.Delay(2000); |
| | | if (!SoundPlayer.Instance.IsPlayBackGroundMuisic()) |
| | | SoundPlayer.Instance.PlayBackGroundMusic(38); |
| | | } |
| | | |
| | | |
| | | |
| | | private void OnClickEnterBoss() |
| | | { |
| | | // BattleField battleField = BattleManager.Instance.GetBattleFieldByMapID(2); //BOSS战斗 |
| | |
| | | UIManager.Instance.OnOpenWindow += OnOpenWindow;
|
| | | UIManager.Instance.OnCloseWindow += OnCloseWindow;
|
| | | OfficialRankManager.Instance.OnOfficialCanLVUpEvent += OnOfficialCanLVUpEvent;
|
| | | PackManager.Instance.DeleteItemEvent += DeleteDropItem;
|
| | | }
|
| | |
|
| | | public override void Release()
|
| | |
| | | UIManager.Instance.OnOpenWindow -= OnOpenWindow;
|
| | | UIManager.Instance.OnCloseWindow -= OnCloseWindow;
|
| | | OfficialRankManager.Instance.OnOfficialCanLVUpEvent -= OnOfficialCanLVUpEvent;
|
| | | PackManager.Instance.DeleteItemEvent -= DeleteDropItem;
|
| | | }
|
| | |
|
| | | void OnOfficialCanLVUpEvent()
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | void DeleteDropItem(PackType packType, string guid, int itemID, int index, int clearType)
|
| | | {
|
| | | if (packType != PackType.DropItem)
|
| | | return;
|
| | | |
| | | if (TryStartNewBieGuides(waitGuideIDs))
|
| | | {
|
| | | Debug.Log("执行等待中的引导" + JsonMapper.ToJson(waitGuideIDs));
|
| | | }
|
| | | }
|
| | |
|
| | | void OnTaskUpdateEvent()
|
| | | {
|
| | | var guides = GuideConfig.GetGuideListByType((int)GuideTriggerType.MainLineQuestCanDo);
|
| | |
| | | break; |
| | | } |
| | | |
| | | SoundPlayer.Instance.PlayUIAudio(57); |
| | | if (isWin) |
| | | { |
| | | SoundPlayer.Instance.PlayUIAudio(57); |
| | | } |
| | | } |
| | | |
| | | //"Msg":{"itemInfo":[{"ItemID":5,"Count":2},{"ItemID":3,"Count":40}],"winFaction":1,"statInfo":{"1":{"1":{"1":{"NPCID":0,"DefHurt":727,"CureHP":0,"AtkHurt":1891,"ObjID":1,"HeroID":530004},"3":{"NPCID":0,"DefHurt":483,"CureHP":1511,"AtkHurt":782,"ObjID":6,"HeroID":520001},"2":{"NPCID":0,"DefHurt":953,"CureHP":0,"AtkHurt":1712,"ObjID":5,"HeroID":510003}}},"2":{"1":{"1":{"NPCID":10101091,"DefHurt":638,"CureHP":0,"AtkHurt":140,"ObjID":2,"HeroID":610001},"3":{"NPCID":10101092,"DefHurt":625,"CureHP":0,"AtkHurt":126,"ObjID":3,"HeroID":610001},"5":{"NPCID":10101093,"DefHurt":3122,"CureHP":0,"AtkHurt":1897,"ObjID":4,"HeroID":510003}}}}} |