コーン飛び出しを失敗条件から除外
This commit is contained in:
parent
933bed56f1
commit
811ffa0cf1
|
|
@ -179,11 +179,6 @@ public class CornManager : MonoBehaviour
|
||||||
missCount.Value++;
|
missCount.Value++;
|
||||||
break;
|
break;
|
||||||
case CornCondition.Spilled:
|
case CornCondition.Spilled:
|
||||||
if (condition.Previous != CornCondition.Burnt)
|
|
||||||
{
|
|
||||||
// ミス数加算
|
|
||||||
missCount.Value++;
|
|
||||||
}
|
|
||||||
// 同時に飛び出したとき用に演出をばらつかせる
|
// 同時に飛び出したとき用に演出をばらつかせる
|
||||||
corn.CallWaitForSeconds(Random.Range(0f, .5f), () => cornSpilledSubject.OnNext(condition.Previous));
|
corn.CallWaitForSeconds(Random.Range(0f, .5f), () => cornSpilledSubject.OnNext(condition.Previous));
|
||||||
break;
|
break;
|
||||||
|
|
@ -208,7 +203,7 @@ public class CornManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
SetResult(CornResult.Perfect);
|
SetResult(CornResult.Perfect);
|
||||||
}
|
}
|
||||||
else if (x.Count(c => c == CornCondition.Burnt || c == CornCondition.Spilled) >= maxFailedCornCount) // すべてのコーンが飛び出した OR すべて焦げた
|
else if (x.Count(c => c == CornCondition.Burnt) >= maxFailedCornCount) // コーンが一定数焦げた
|
||||||
{
|
{
|
||||||
SetResult(CornResult.Failure);
|
SetResult(CornResult.Failure);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue