From 0dd54a6c1681c4ee9aeaf9a96c28719c73f9888e Mon Sep 17 00:00:00 2001 From: kimura Date: Wed, 13 Oct 2021 11:16:56 +0900 Subject: [PATCH] =?UTF-8?q?=E8=B2=A9=E5=A3=B2=E5=BC=9F=E3=81=AE=E3=82=A2?= =?UTF-8?q?=E3=83=8B=E3=83=A1=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E3=83=90?= =?UTF-8?q?=E3=82=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyGame/Scenes/marketing/Scripts/BrotherPinkView.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherPinkView.cs b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherPinkView.cs index 780a5e31..0808298a 100644 --- a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherPinkView.cs +++ b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/BrotherPinkView.cs @@ -103,7 +103,11 @@ public class BrotherPinkView : SingletonMonoBehaviour var move = pinkMoves[moveIndex]; wayPoint = move.wayPoint; completedDuration = move.wait; - if (animator != null) animator.SetTrigger(move.trigger); + if (animator != null) + { + animator.ResetTrigger(Normal); + animator.SetTrigger(move.trigger); + } if (Vector2.Distance(wayPoint, pinkTransform.localPosition.ToVector2()) < .01f) { // nop @@ -145,11 +149,11 @@ public class BrotherPinkView : SingletonMonoBehaviour public void SetWalk() { - if (!isManyCustomer) + if (isLocked) { return; } - if (!isLocked) + if (isManyCustomer) { isManyCustomer = false; SetPinkMove();