タイマー修正

This commit is contained in:
kimura 2022-06-30 16:50:32 +09:00
parent 5c22483472
commit 976f44d586
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ namespace MyGame.Scenes.MiniGame.Scripts
SoundManager.Instance.PlaySE("se_minigame_Start");
var sharedTimer = Observable.Timer(TimeSpan.Zero, TimeSpan.FromSeconds(1f))
.Select(time => (int)(timeLimit - time))
.TakeWhile(time => time > 0)
.TakeWhile(time => time >= 0)
.Share();
sharedTimer.Subscribe(time =>
{