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);