遅延メソッドを変更/リザルト表示から1秒後に操作可能に変更
This commit is contained in:
parent
53b15379c6
commit
29a9376f1b
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue