終了処理修正
This commit is contained in:
		
							parent
							
								
									fdf146541b
								
							
						
					
					
						commit
						40ac7d03f6
					
				|  | @ -62,7 +62,7 @@ public class CornManager : MonoBehaviour | ||||||
|             cornArray[i] = corn; |             cornArray[i] = corn; | ||||||
|             corn.SetCornProperty(baseCornPopTime, cornBurntDuration); |             corn.SetCornProperty(baseCornPopTime, cornBurntDuration); | ||||||
|              |              | ||||||
|             cornGrowSpeed.Where(_ => !isCompleted).Subscribe(x => |             cornGrowSpeed.TakeWhile(_ => !isCompleted).Subscribe(x => | ||||||
|             { |             { | ||||||
|                 // コーンが弾けた後はRedの場合のみ焦げ進行する |                 // コーンが弾けた後はRedの場合のみ焦げ進行する | ||||||
|                 if (corn.Condition.Value == CornCondition.Simple && !isHot) |                 if (corn.Condition.Value == CornCondition.Simple && !isHot) | ||||||
|  | @ -93,8 +93,8 @@ public class CornManager : MonoBehaviour | ||||||
|             .FirstOrDefault(x => !x.Contains(CornCondition.Seed)) |             .FirstOrDefault(x => !x.Contains(CornCondition.Seed)) | ||||||
|             .Subscribe(x => |             .Subscribe(x => | ||||||
|             { |             { | ||||||
|                 isCompleted = true; |  | ||||||
|                 cornGrowSpeed.Value = 0f; |                 cornGrowSpeed.Value = 0f; | ||||||
|  |                 isCompleted = true; | ||||||
|                 if (x.Count(c => c == CornCondition.Simple) == x.Count) // すべてのコーンがPopped |                 if (x.Count(c => c == CornCondition.Simple) == x.Count) // すべてのコーンがPopped | ||||||
|                 { |                 { | ||||||
|                     result.SetValueAndForceNotify(CornResult.Perfect); |                     result.SetValueAndForceNotify(CornResult.Perfect); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue