少年修仙传客户端代码仓库
client_linchunjie
2019-03-15 a2d5de3e739f990de9ed834f936ab34c11c9c345
6340  【前端】【2.0】境界改版开发单
3个文件已修改
41 ■■■■■ 已修改文件
System/Realm/RealmAnimationBehaviour.cs 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmModel.cs 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmWin.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmAnimationBehaviour.cs
@@ -19,6 +19,8 @@
        float m_DeltaAngle { get { return 360f / 8; } }
        public bool rotating { get; private set; }
        public event Action onRotateComplete;
        public event Action onLevelUpComplete;
@@ -26,6 +28,7 @@
        public void SetDefault()
        {
            rotating = false;
            m_ContainerLine.gameObject.SetActive(false);
            for (int i = 0; i < m_RealmStages.Length; i++)
            {
@@ -96,13 +99,13 @@
                realmStage.DisplayEffect(true);
            }
            yield return WaitingForSecondConst.WaitMS500;
            if (onLevelUpComplete != null)
            {
                onLevelUpComplete();
            }
            if (index == 3)
            {
                StartRotate();
            }
            if (onLevelUpComplete != null)
            {
                onLevelUpComplete();
            }
        }
@@ -120,6 +123,7 @@
        void StartRotate()
        {
            rotating = true;
            if (m_RotateCoroutine != null)
            {
                StopCoroutine(m_RotateCoroutine);
@@ -129,6 +133,7 @@
        public void Dispose()
        {
            rotating = false;
            StopAllCoroutines();
            if (m_RotateCoroutine != null)
            {
@@ -190,6 +195,8 @@
            }
            m_ContainerEffectLine.localEulerAngles = Vector3.zero;
            rotating = false;
            if (onRotateComplete != null)
            {
                onRotateComplete();
System/Realm/RealmModel.cs
@@ -83,12 +83,15 @@
                    m_RealmProperties.Add(config.Lv, dict);
                }
                stages.Add(config.Lv);
                if (config.BossID != 0)
                if (config.Lv != 0)
                {
                    stages = new List<int>();
                    m_RealmStages.Add(stages);
                    stages.Add(config.Lv);
                    if (config.BossID != 0)
                    {
                        stages = new List<int>();
                        m_RealmStages.Add(stages);
                    }
                }
                if (!string.IsNullOrEmpty(config.equips))
@@ -155,6 +158,10 @@
        public int GetRealmStage(int realmLevel)
        {
            if (realmLevel == 0)
            {
                return 0;
            }
            for (int i = 0; i < m_RealmStages.Count; i++)
            {
                var stages = m_RealmStages[i];
System/Realm/RealmWin.cs
@@ -278,10 +278,6 @@
                    {
                        var index = realms.IndexOf(cacheRealmLevel);
                        m_RealmAnimation.DisplayLevelUp(realms.IndexOf(cacheRealmLevel));
                        if (index == 3)
                        {
                            m_ContainerUnlockEquip.gameObject.SetActive(false);
                        }
                    }
                }
                cacheRealmLevel = realmLevel;
@@ -325,7 +321,10 @@
        {
            DisplayRealmBrief();
            DisplayRealmLevelUp();
            DisplayUnlockEquip();
            if (!m_RealmAnimation.rotating)
            {
                DisplayUnlockEquip();
            }
        }
        private void OnBack()