| System/HazyRegion/HazyRegionCyclicScroll.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/HazyRegion/HazyRegionIncidentPanel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/HazyRegion/HazyRegionCyclicScroll.cs
@@ -1,4 +1,5 @@ using System.Collections; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Snxxz.UI @@ -19,6 +20,8 @@ } Coroutine m_Coroutine = null; public event Action animationComplete; public override void Init<T>(List<T> _datas, bool _stepByStep = false) { @@ -70,6 +73,11 @@ yield return WaitingForSecondConst.GetWaitForSeconds(time); if (animationComplete != null) { animationComplete(); } IsPlaying = false; } } System/HazyRegion/HazyRegionIncidentPanel.cs
@@ -48,6 +48,9 @@ DailyQuestActionTimer.Instance.RefreshDailyQuestState -= RefreshDailyQuestState; DailyQuestActionTimer.Instance.RefreshDailyQuestState += RefreshDailyQuestState; m_CyclicScroll.animationComplete -= AnimationComplete; m_CyclicScroll.animationComplete += AnimationComplete; } void DisplayIncidents() @@ -320,10 +323,19 @@ DisplayGotoState(); } private void AnimationComplete() { if (!NewBieCenter.Instance.IsGuideCompleted(58)) { NewBieCenter.Instance.StartNewBieGuide(58); } } public void Dispose() { m_CyclicScroll.Dispose(); DailyQuestActionTimer.Instance.RefreshDailyQuestState -= RefreshDailyQuestState; m_CyclicScroll.animationComplete -= AnimationComplete; } #if UNITY_EDITOR