예제 #1
0
 public void StopBgm()
 {
     if (storyData != null && !string.IsNullOrEmpty(storyData.bgm))
     {
         FusionAudio.StopBGM();
     }
 }
예제 #2
0
 public override IEnumerator OnRemoveFromStack()
 {
     FusionAudio.StopBGM();
     CenterOnChild.onCenter -= OnCenter;
     CenterOnChild.CenterOn(StartPos);
     curObj = null;
     DestroySelf();
     yield break;
 }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }
예제 #5
0
        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;
        }
예제 #6
0
        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());
        }
예제 #7
0
 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;
 }
예제 #8
0
 public override void OnBlur()
 {
     base.OnBlur();
     controller.HasPlayedTween = false;
     FusionAudio.StopBGM();
 }