public void StopBgm() { if (storyData != null && !string.IsNullOrEmpty(storyData.bgm)) { FusionAudio.StopBGM(); } }
public override IEnumerator OnRemoveFromStack() { FusionAudio.StopBGM(); CenterOnChild.onCenter -= OnCenter; CenterOnChild.CenterOn(StartPos); curObj = null; DestroySelf(); yield break; }
public override IEnumerator OnRemoveFromStack() { isOpen = false; StopAllCoroutines(); controller.CancelInvoke(); GameDataSparxManager.Instance.UnRegisterListener(LTLegionWarManager.QualifyEnemyListDataId, OnFlowEnemyListListener); FusionAudio.StopBGM(); TimeLabel.text = TimeLabel.transform.GetChild(0).GetComponent <UILabel>().text = string.Empty; BGTexture.spriteName = string.Empty; DestroySelf(); yield break; }
public override IEnumerator OnRemoveFromStack() { Hotfix_LT.Messenger.RemoveListener <System.Action>(EventName.PlayCloudFXCallback, PlayCloudFxFunc); FusionAudio.StopBGM(); if (controller != null) { DynamicScroll.scrollView.GetComponent <TweenAlpha>().ResetToBeginning(); DestroySelf(); } StopAllCoroutines(); CloudFx = null; yield break; }
public override IEnumerator OnRemoveFromStack() { isOpen = false; FusionAudio.StopBGM(); CloseReflashTime(); Hotfix_LT.Messenger.RemoveListener("OnOffersFetched", OnOffersFetched); Hotfix_LT.Messenger.RemoveListener <EB.IAP.Item, EB.IAP.Transaction>(Hotfix_LT.EventName.OnOfferPurchaseSuceeded, OnOfferPurchaseSuceeded); Hotfix_LT.Messenger.RemoveListener <string>(Hotfix_LT.EventName.OnOfferPurchaseFailed, OnOfferPurchaseFailed); Hotfix_LT.Messenger.RemoveListener(Hotfix_LT.EventName.OnOfferPurchaseCanceled, OnOfferPurchaseCanceled); Hotfix_LT.Messenger.RemoveListener(Hotfix_LT.EventName.ChargeFreeGiftReflash, ReflashUI); LTRedPointSystem.Instance.RemoveRedPointNodeCallBack(RedPointConst.chargedaygift, ChargeDayGiftRP); LTRedPointSystem.Instance.RemoveRedPointNodeCallBack(RedPointConst.chargeweekgift, ChargeWeekGiftRP); LTRedPointSystem.Instance.RemoveRedPointNodeCallBack(RedPointConst.chargemonthgift, ChargeMonthGiftRP); DestroySelf(); yield break; }
public override IEnumerator OnRemoveFromStack() { m_DialogueFrame.m_Left.m_SpriteIcon.spriteName = string.Empty; m_DialogueFrame.m_Right.m_SpriteIcon.spriteName = string.Empty; m_DialogueFrame.m_Left.mDMono.gameObject.CustomSetActive(false); m_DialogueFrame.m_Right.mDMono.gameObject.CustomSetActive(false); FusionAudio.StopBGM(); if (GlobalMenuManager.Instance != null) { GlobalMenuManager.Instance.RemoveOpenController(controller); } if (m_guideToolState) { m_guideToolState = false; GuideObj.CustomSetActive(true); if (GuideNodeManager.ExecuteGuideAudio != null) { GuideNodeManager.ExecuteGuideAudio(true); } } return(base.OnRemoveFromStack()); }
public override IEnumerator OnRemoveFromStack() { FusionAudio.StopBGM(); if (isWatchLog) { } else { Messenger.RemoveListener(Hotfix_LT.EventName.LegionWar_UpdataFinal, UpdataListener); isOpen = false; if (GameDataSparxManager.Instance.HasListener(LTLegionWarManager.FinalPlayerDataListId)) { GameDataSparxManager.Instance.UnRegisterListener(LTLegionWarManager.FinalPlayerDataListId, FinalFieldListener); } if (GameDataSparxManager.Instance.HasListener(LTLegionWarManager.FinalStatusListId)) { GameDataSparxManager.Instance.UnRegisterListener(LTLegionWarManager.FinalStatusListId, FinalStatusListener); } LTLegionWarManager.Instance.LevelAllianceWar(); } StopAllCoroutines(); DestroySelf(); yield break; }
public override void OnBlur() { base.OnBlur(); controller.HasPlayedTween = false; FusionAudio.StopBGM(); }