addto追加
This commit is contained in:
parent
5caea10e96
commit
b9040fc5c7
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue