リファクタ
This commit is contained in:
parent
789094c022
commit
6bc7e935eb
|
|
@ -90,7 +90,7 @@ namespace MyGame.Scenes.MiniGame.Scripts
|
||||||
var stageData = levelStageList[0];
|
var stageData = levelStageList[0];
|
||||||
var scoreUpdate = new Subject<Unit>().AddTo(this);
|
var scoreUpdate = new Subject<Unit>().AddTo(this);
|
||||||
stageSelectView.SetPlaceData(levelPlaceList);
|
stageSelectView.SetPlaceData(levelPlaceList);
|
||||||
scoreUpdate.Subscribe(_ =>
|
scoreUpdate.StartWith(Unit.Default).Subscribe(_ =>
|
||||||
{
|
{
|
||||||
// スコア更新
|
// スコア更新
|
||||||
var placeScore = gameData.ScrollGamePlaceScoreList.FirstOrDefault(data => data.Id == placeId)?.Score ?? 0;
|
var placeScore = gameData.ScrollGamePlaceScoreList.FirstOrDefault(data => data.Id == placeId)?.Score ?? 0;
|
||||||
|
|
@ -122,7 +122,6 @@ namespace MyGame.Scenes.MiniGame.Scripts
|
||||||
ScrollGameWatchVideoDialog.ShowDialog(ResetGameWithCount);
|
ScrollGameWatchVideoDialog.ShowDialog(ResetGameWithCount);
|
||||||
|
|
||||||
}).AddTo(this);
|
}).AddTo(this);
|
||||||
scoreUpdate.OnNext(Unit.Default);
|
|
||||||
|
|
||||||
menuState.Subscribe(x =>
|
menuState.Subscribe(x =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue