diff --git a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CornManager.cs b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CornManager.cs index de534a15..cb88c7e7 100644 --- a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CornManager.cs +++ b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CornManager.cs @@ -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);