From f05f439fcf3283064b9635ed13d74e03c16f9476 Mon Sep 17 00:00:00 2001 From: kimura Date: Thu, 10 Feb 2022 18:58:35 +0900 Subject: [PATCH] =?UTF-8?q?=E5=85=84=E5=BC=9F=E9=9D=9E=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E6=99=82=E3=81=AB=E3=83=91=E3=83=BC=E3=83=86=E3=82=A3=E3=82=AF?= =?UTF-8?q?=E3=83=AB=E3=81=AE=E9=9D=9E=E8=A1=A8=E7=A4=BA=E3=81=AB=E5=AF=BE?= =?UTF-8?q?=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/MyGame/Scenes/marketing/Scripts/BrotherBlueView.cs | 3 ++- .../Assets/MyGame/Scenes/marketing/Scripts/BrotherPinkView.cs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherBlueView.cs b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherBlueView.cs index 5db6573f..80446c35 100644 --- a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherBlueView.cs +++ b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherBlueView.cs @@ -33,6 +33,7 @@ public class BrotherBlueView : MonoBehaviour public void SetActive(bool active) { - transform.localScale = active ? initScale : Vector3.zero; + animator.speed = active ? 1f : 0f; + animator.transform.localScale = active ? initScale : Vector3.zero; } } diff --git a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherPinkView.cs b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherPinkView.cs index d0f5a42a..7d4c419f 100644 --- a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherPinkView.cs +++ b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherPinkView.cs @@ -268,7 +268,9 @@ public class BrotherPinkView : SingletonMonoBehaviour { if (animator != null) { + animator.speed = active ? 1f : 0f; animator.transform.localScale = active ? Vector3.one : Vector3.zero; + animator.GetComponentInChildren()?.transform.SetLocalScale(active ? 1f : 0f); } } }