少年修仙传客户端代码仓库
client_linchunjie
2019-04-04 11bfdbdbdfdeec58bf5099cb4c508f3cbc6dda77
3335 缥缈仙域
2个文件已修改
19 ■■■■ 已修改文件
System/HazyRegion/HazyRegionCyclicScroll.cs 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/HazyRegion/HazyRegionWin.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/HazyRegion/HazyRegionCyclicScroll.cs
@@ -9,22 +9,30 @@
        public bool IsPlaying { get; private set; }
        Coroutine m_Coroutine = null;
        public override void Init<T>(List<T> _datas, bool _stepByStep = false)
        {
            base.Init(_datas, _stepByStep);
            IsPlaying = false;
            this.enabled = true;
            if (m_Coroutine != null)
            {
                StopCoroutine(m_Coroutine);
                m_Coroutine = null;
            }
        }
        public void StartEnterAnmation()
        public void DisplayAnimation()
        {
            IsPlaying = true;
            this.enabled = false;
            StartCoroutine(Co_EnterAnimation());
            m_Coroutine = StartCoroutine(Co_DisplayAnimation());
        }
        IEnumerator Co_EnterAnimation()
        IEnumerator Co_DisplayAnimation()
        {
            for (int i = 0; i < infiniteItems.Count; i++)
            {
@@ -50,7 +58,10 @@
                time = behaviour.alphaTween.duration - m_FadeInTime;
            }
            time = Mathf.Max(0, time);
            yield return WaitingForSecondConst.GetWaitForSeconds(time);
            IsPlaying = false;
            this.enabled = true;
        }
System/HazyRegion/HazyRegionWin.cs
@@ -35,7 +35,7 @@
        protected override void OnActived()
        {
            base.OnActived();
            m_EventCyclicScroll.StartEnterAnmation();
            m_EventCyclicScroll.DisplayAnimation();
        }
        protected override void OnAfterOpen()