リザルト進捗表示修正

This commit is contained in:
kimura 2022-08-15 14:43:18 +09:00
parent 96928db7b4
commit 733c99b859
1 changed files with 3 additions and 3 deletions

View File

@ -178,8 +178,9 @@ namespace MyGame.Scenes.MiniGame.Scripts
{
SetSilhouette(x.prefab, x.isRecipe);
var prevScore = prevPlaceScore > basePlaceScore ? prevPlaceScore - basePlaceScore : 0;
var needScore = x.needScore - basePlaceScore;
var newScore = placeScoreData.Score - basePlaceScore;
var needScore = x.needScore == basePlaceScore ? 1 : x.needScore - basePlaceScore;
var newScore = x.needScore == basePlaceScore ? 1 : placeScoreData.Score - basePlaceScore;
basePlaceScore = x.needScore;
SetProgress((float)prevScore / needScore, false).ToObservable()
.Delay(TimeSpan.FromSeconds(waitProgress))
.Do(_ => SoundManager.Instance.PlaySE("se_minigame_meter"))
@ -194,7 +195,6 @@ namespace MyGame.Scenes.MiniGame.Scripts
}
ShopItemExchangeView.ShowDialog(x.name, x.prefab, x.isRecipe, () => nextItemSubject.OnNext(Unit.Default));
}).AddTo(this);
basePlaceScore = x.needScore;
})
.SelectMany(nextItemSubject)
.Delay(TimeSpan.FromSeconds(waitButtonActive))