少年修仙传客户端代码仓库
client_Wu Xijin
2019-04-13 710da22ea8c56f8b66dcc0362494c5a26b59d596
6481 【前端】【2.0】创角修改
1个文件已修改
12 ■■■■■ 已修改文件
System/CreateRole/CreateRoleBehaviour.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/CreateRole/CreateRoleBehaviour.cs
@@ -25,6 +25,7 @@
    public void DoRoutineShow()
    {
        m_Shadow.gameObject.SetActive(false);
        m_Platform.transform.localEulerAngles = new Vector3(0, 180, 0);
        m_Platform.ForbidSeconds(m_RoutimeShowAnimation.delay + m_RoutimeShowAnimation.duration);
        CreateRoleManager.Instance.LoadModel(m_Job, (bool ok, UnityEngine.Object @object) =>
@@ -41,6 +42,7 @@
                        break;
                    case EnterPictureType.Stand:
                        model.SetActive(true);
                        m_Shadow.gameObject.SetActive(true);
                        m_Shadow.Cast(model.transform);
                        break;
                }
@@ -54,13 +56,21 @@
                    if (m_EnterPictureType == EnterPictureType.OutIn)
                    {
                        model.SetActive(true);
                        m_Shadow.Cast(model.transform);
                    }
                    var animator = model.GetComponent<Animator>();
                    animator.Play(m_RoutimeShowAnimation.animation);
                });
                showTimeLine.AddNone(m_RoutimeShowAnimation.delay+0.1f, () =>
                {
                    if (m_EnterPictureType == EnterPictureType.OutIn)
                    {
                        m_Shadow.gameObject.SetActive(true);
                        m_Shadow.Cast(model.transform);
                    }
                });
                foreach (var effect in m_PersistentEffect)
                {
                    showTimeLine.AddNone(effect.delay, () =>