From 710da22ea8c56f8b66dcc0362494c5a26b59d596 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期六, 13 四月 2019 13:49:37 +0800
Subject: [PATCH] 6481 【前端】【2.0】创角修改
---
System/CreateRole/CreateRoleBehaviour.cs | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/System/CreateRole/CreateRoleBehaviour.cs b/System/CreateRole/CreateRoleBehaviour.cs
index 71edee6..418f8f5 100644
--- a/System/CreateRole/CreateRoleBehaviour.cs
+++ b/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, () =>
--
Gitblit v1.8.0