private void SetLandBGM(string landId) { switch (landId) { case "1": FusionAudio.PostBGMEvent("BGM/DongLuoMa", true); break; case "2": FusionAudio.PostBGMEvent("BGM/XiLuoMa", true); break; case "3": FusionAudio.PostBGMEvent("BGM/AiJi", true); break; case "4": FusionAudio.PostBGMEvent("BGM/BoSi", true); break; case "5": FusionAudio.PostBGMEvent("BGM/ManZuZhiDi", true); break; case "6": FusionAudio.PostBGMEvent("BGM/RenYuDao", true); break; } FusionAudio.StartBGM(); }
public override IEnumerator OnAddToStack() { BGTexture.spriteName = "Game_Background_21"; yield return(base.OnAddToStack()); GlobalMenuManager.Instance.PushCache("LTLegionWarQualifyView"); yield return(new WaitUntil(() => LTLegionWarJoinController.callBack)); GameDataSparxManager.Instance.RegisterListener(LTLegionWarManager.QualifyEnemyListDataId, OnFlowEnemyListListener); if (LTLegionWarManager.Instance.serveCurState != 1) { controller.Close(); yield break; } else { int ts = 0; if (LTLegionWarTimeLine.Instance != null) { ts = Convert.ToInt32(LTLegionWarTimeLine.Instance.QualifyEndTime - EB.Time.Now); } if (ts <= 0) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_EconomyTemplateManager_62898")); CheckTime(); yield break; } } isOpen = true; FusionAudio.PostBGMEvent("BGM/JunTuanZhan", true); FusionAudio.StartBGM(); LTLegionWarManager.Instance.GetQualifyWarEnemyList();//获取预赛数据 }
protected void PlayBgm() { if (storyData != null && !string.IsNullOrEmpty(storyData.bgm)) { FusionAudio.PostBGMEvent(storyData.bgm, true); FusionAudio.StartBGM(); } }
public override IEnumerator OnAddToStack() { FusionAudio.StartBGM(); yield return(base.OnAddToStack()); LTInstanceMapModel.Instance.RequestChallengeLevelInfo(delegate { OnInfoReady(); }, LTInstanceConfig.AlienMazeTypeStr); LTInstanceMapModel.Instance.SetHasMazeState(); GlobalMenuManager.Instance.PushCache("LTAlienMazeHud"); Hotfix_LT.Messenger.AddListener <System.Action>(EventName.PlayCloudFXCallback, PlayCloudFxFunc); }
public override IEnumerator OnAddToStack() { if (GuideObj.activeSelf) { m_guideToolState = true; GuideObj.CustomSetActive(false); if (GuideNodeManager.ExecuteGuideAudio != null) { GuideNodeManager.ExecuteGuideAudio(false); } } yield return(base.OnAddToStack()); GlobalMenuManager.Instance.CloseMenu("LTMainInstanceLampView"); FusionAudio.StartBGM(); }
public override IEnumerator OnAddToStack() { isOpen = true; FusionAudio.PostBGMEvent("BGM/Shop", true); FusionAudio.StartBGM(); yield return(base.OnAddToStack()); ReflashTimeTest(); ReflashFreeGiftRP(); Hotfix_LT.Messenger.AddListener("OnOffersFetched", OnOffersFetched); Hotfix_LT.Messenger.AddListener <EB.IAP.Item, EB.IAP.Transaction>(Hotfix_LT.EventName.OnOfferPurchaseSuceeded, OnOfferPurchaseSuceeded); Hotfix_LT.Messenger.AddListener <string>(Hotfix_LT.EventName.OnOfferPurchaseFailed, OnOfferPurchaseFailed); Hotfix_LT.Messenger.AddListener(Hotfix_LT.EventName.OnOfferPurchaseCanceled, OnOfferPurchaseCanceled); Hotfix_LT.Messenger.AddListener(Hotfix_LT.EventName.ChargeFreeGiftReflash, ReflashUI); LTRedPointSystem.Instance.AddRedPointNodeCallBack(RedPointConst.chargedaygift, ChargeDayGiftRP); LTRedPointSystem.Instance.AddRedPointNodeCallBack(RedPointConst.chargeweekgift, ChargeWeekGiftRP); LTRedPointSystem.Instance.AddRedPointNodeCallBack(RedPointConst.chargemonthgift, ChargeMonthGiftRP); }
public override IEnumerator OnAddToStack() { FusionAudio.PostBGMEvent("BGM/JunTuanZhan", true); FusionAudio.StartBGM(); yield return(new WaitUntil(() => LTLegionWarJoinController.callBack)); if (isWatchLog) { FinalStatusListener(null, null); FinalFieldListener(null, null); } else { Messenger.AddListener(Hotfix_LT.EventName.LegionWar_UpdataFinal, UpdataListener); if (LTLegionWarManager.Instance.serveCurState < 2) { controller.Close(); yield break; } else { int ts = 0; if (LTLegionWarTimeLine.Instance != null) { ts = Convert.ToInt32(((LTLegionWarFinalController._WarType == WarType.Semifinal) ? LTLegionWarTimeLine.Instance.SemiFinalStopTime : LTLegionWarTimeLine.Instance.FinalStopTime) - EB.Time.Now); } if (ts <= 0) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_LTLegionWarFinalController_4204")); controller.Close(); yield break; } } LTLegionWarManager.Instance.EnterSemiFinalFiled(LTLegionWarManager.Instance.SemiFinalField, 0); } yield return(base.OnAddToStack()); InitLegionData(); }
public override IEnumerator OnAddToStack() { FusionAudio.StartBGM(); //每次进入资源界面清空类型记录防止干扰 LTDrawCardLookupController.DrawType = DrawCardType.none; mChooseLevel = null; mActivityTbl = Hotfix_LT.Data.EventTemplateManager.Instance.GetSpecialActivity(mActivityId); mlevelsTbl = Hotfix_LT.Data.EventTemplateManager.Instance.GetSpecialActivityLevels(mActivityId); if (mInstanceType == ResourceInstanceType.Gold) { ExpFx.CustomSetActive(false); GoldFx.CustomSetActive(true); } else if (mInstanceType == ResourceInstanceType.Exp) { GoldFx.CustomSetActive(false); ExpFx.CustomSetActive(true); } if (mActivityTbl == null || mlevelsTbl.Count < 0) { yield break; } InitUI(); CenterOnChild.onCenter += OnCenter; GlobalMenuManager.Instance.PushCache("LTResourceInstanceUI", (mActivityId == 9001) ? "Gold" : "Exp"); LTResourceInstanceManager.Instance.GetResourceInstanceTime(mActivityId, delegate { InitSelect(); }); yield return(null); yield return(base.OnAddToStack()); InitSelect();//start后執行一次,防止网络卡顿造成界面异常 }