From b9040fc5c7b33f14bc017aa9cb3e3cf2814f7431 Mon Sep 17 00:00:00 2001 From: kimura Date: Thu, 10 Feb 2022 16:08:18 +0900 Subject: [PATCH] =?UTF-8?q?addto=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/MyGame/Scenes/marketing/Scripts/CustomerAnimator.cs | 1 + .../MyGame/Scenes/marketing/Scripts/VipCustomerButtonView.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/CustomerAnimator.cs b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/CustomerAnimator.cs index 3163c11a..9e1232a5 100644 --- a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/CustomerAnimator.cs +++ b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/CustomerAnimator.cs @@ -41,6 +41,7 @@ public class CustomerAnimator : MonoBehaviour { animator.SetTrigger(x); }).AddTo(this); + IsPause.AddTo(this); IsPause.DistinctUntilChanged().Subscribe(x => { animator.speed = x ? 0f : 1f; diff --git a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/VipCustomerButtonView.cs b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/VipCustomerButtonView.cs index af335bce..7e4ed657 100644 --- a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/VipCustomerButtonView.cs +++ b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/VipCustomerButtonView.cs @@ -30,7 +30,7 @@ namespace MyGame.Scenes.marketing.Scripts VipButton = vipButton.OnClickAsObservable() .Merge(eventTrigger.OnPointerClickAsObservable().AsUnitObservable()) .TakeUntilDestroy(this); - + IsPause.AddTo(this); IsPause.DistinctUntilChanged().Subscribe(x => { vipSpeechBubbleObject.transform.SetLocalScale(x ? 0f : 1f);