少年修仙传客户端代码仓库
client_linchunjie
2019-07-01 8c9e42ca96e2483dcd2e49fc792204e6a6c0c3c1
3335 境界界面防止小包特效资源未加载完的报错
1个文件已修改
18 ■■■■■ 已修改文件
System/Realm/RealmAnimationBehaviour.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmAnimationBehaviour.cs
@@ -73,8 +73,11 @@
                    {
                        m_EffectLines[i].effect = model.GetRealmLineEffect(realms[i]);
                        m_EffectLines[i].Play();
                        var animator = m_EffectLines[i].target.GetAnimator();
                        animator.Play("idle", 0, 0);
                        if (m_EffectLines[i].target != null)
                        {
                            var animator = m_EffectLines[i].target.GetAnimator();
                            animator.Play("idle", 0, 0);
                        }
                    }
                }
            }
@@ -202,10 +205,13 @@
        {
            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);
            yield return WaitingForSecondConst.WaitMS500;
            animator.Play("idle", 0);
            if (m_EffectLines[index].target != null)
            {
                var animator = m_EffectLines[index].target.GetAnimator();
                animator.Play("open", 0, 0);
                yield return WaitingForSecondConst.WaitMS500;
                animator.Play("idle", 0);
            }
            var realmStage = GetRealmStageBeha(index + 1);
            if (realmStage != null)