From 29a9376f1b7c8740ae570c086e13b6eb37456719 Mon Sep 17 00:00:00 2001 From: kimura Date: Tue, 13 Jul 2021 12:27:15 +0900 Subject: [PATCH] =?UTF-8?q?=E9=81=85=E5=BB=B6=E3=83=A1=E3=82=BD=E3=83=83?= =?UTF-8?q?=E3=83=89=E3=82=92=E5=A4=89=E6=9B=B4/=E3=83=AA=E3=82=B6?= =?UTF-8?q?=E3=83=AB=E3=83=88=E8=A1=A8=E7=A4=BA=E3=81=8B=E3=82=891?= =?UTF-8?q?=E7=A7=92=E5=BE=8C=E3=81=AB=E6=93=8D=E4=BD=9C=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- popcorn/Assets/PopcornGameManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/popcorn/Assets/PopcornGameManager.cs b/popcorn/Assets/PopcornGameManager.cs index 580acab1..954aa133 100644 --- a/popcorn/Assets/PopcornGameManager.cs +++ b/popcorn/Assets/PopcornGameManager.cs @@ -113,7 +113,7 @@ public class PopcornGameManager : MonoBehaviour characterFlower.gameObject.SetActive(false); characterSweat.gameObject.SetActive(false); // リザルト表示遅延 - Observable.Timer(TimeSpan.FromMilliseconds(1000)).Subscribe(a => + this.CallWaitForSeconds(1f, () => { switch (x) { @@ -135,11 +135,12 @@ public class PopcornGameManager : MonoBehaviour .DistinctUntilChanged() .Skip(1) .FirstOrDefault(b => b) + .DelaySubscription(TimeSpan.FromSeconds(1f)) .Subscribe(_ => { ResetGame(); }).AddTo(compositeDisposable); - }).AddTo(compositeDisposable); + }); }).AddTo(compositeDisposable); this.UpdateAsObservable()