addto追加

This commit is contained in:
kimura 2022-02-10 16:08:18 +09:00
parent 5caea10e96
commit b9040fc5c7
2 changed files with 2 additions and 1 deletions

View File

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

View File

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