少年修仙传客户端代码仓库
client_linchunjie
2019-03-22 82302c755f26f82c1813eac1c2c66b9f607df11e
6340  【前端】【2.0】境界改版开发单(优化表现)
2个文件已修改
20 ■■■■■ 已修改文件
System/Realm/RealmAnimationBehaviour.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmModel.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmAnimationBehaviour.cs
@@ -71,6 +71,7 @@
                    var level = realms[i] + 1;
                    if (realmLevel >= level)
                    {
                        m_EffectLines[i].effect = model.GetRealmLineEffect(realms[i]);
                        m_EffectLines[i].Play();
                        var animator = m_EffectLines[i].target.GetAnimator();
                        animator.Play("idle", 0, 0);
@@ -199,6 +200,7 @@
        IEnumerator Co_StartLine(int index)
        {
            m_EffectLines[index].effect = model.GetRealmLineEffect(model.displayRealmLevel - 1);
            m_EffectLines[index].Play();
            var animator = m_EffectLines[index].target.GetAnimator();
            animator.Play("open", 0, 0);
System/Realm/RealmModel.cs
@@ -317,6 +317,24 @@
            return 7039;
        }
        public int GetRealmLineEffect(int realmLevel)
        {
            var config = RealmConfig.Get(realmLevel);
            if (config != null)
            {
                switch (config.Quality)
                {
                    case 1: return 7034;
                    case 2: return 7059;
                    case 3: return 7060;
                    case 4: return 7061;
                    case 5: return 7062;
                    case 6: return 7063;
                }
            }
            return 7034;
        }
        public bool GetBossEffectShow(int realmLevel)
        {
            var playerId = PlayerDatas.Instance.baseData.PlayerID;