終了処理修正

This commit is contained in:
kimura 2021-07-07 17:16:39 +09:00
parent fdf146541b
commit 40ac7d03f6
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ public class CornManager : MonoBehaviour
cornArray[i] = corn;
corn.SetCornProperty(baseCornPopTime, cornBurntDuration);
cornGrowSpeed.Where(_ => !isCompleted).Subscribe(x =>
cornGrowSpeed.TakeWhile(_ => !isCompleted).Subscribe(x =>
{
// コーンが弾けた後はRedの場合のみ焦げ進行する
if (corn.Condition.Value == CornCondition.Simple && !isHot)
@ -93,8 +93,8 @@ public class CornManager : MonoBehaviour
.FirstOrDefault(x => !x.Contains(CornCondition.Seed))
.Subscribe(x =>
{
isCompleted = true;
cornGrowSpeed.Value = 0f;
isCompleted = true;
if (x.Count(c => c == CornCondition.Simple) == x.Count) // すべてのコーンがPopped
{
result.SetValueAndForceNotify(CornResult.Perfect);