リファクタ

This commit is contained in:
kimura 2022-08-15 09:25:09 +09:00
parent 789094c022
commit 6bc7e935eb
1 changed files with 1 additions and 2 deletions

View File

@ -90,7 +90,7 @@ namespace MyGame.Scenes.MiniGame.Scripts
var stageData = levelStageList[0];
var scoreUpdate = new Subject<Unit>().AddTo(this);
stageSelectView.SetPlaceData(levelPlaceList);
scoreUpdate.Subscribe(_ =>
scoreUpdate.StartWith(Unit.Default).Subscribe(_ =>
{
// スコア更新
var placeScore = gameData.ScrollGamePlaceScoreList.FirstOrDefault(data => data.Id == placeId)?.Score ?? 0;
@ -122,7 +122,6 @@ namespace MyGame.Scenes.MiniGame.Scripts
ScrollGameWatchVideoDialog.ShowDialog(ResetGameWithCount);
}).AddTo(this);
scoreUpdate.OnNext(Unit.Default);
menuState.Subscribe(x =>
{