リスタート時の挙動改善
This commit is contained in:
parent
daf2ce6d9d
commit
53b15379c6
|
|
@ -100,6 +100,7 @@ public class CornManager : MonoBehaviour
|
|||
|
||||
public void RespawnCorn()
|
||||
{
|
||||
cornGrowSpeed.Value = 0f;
|
||||
isCompleted = false;
|
||||
compositeDisposable.Clear();
|
||||
cornConditions.Clear();
|
||||
|
|
@ -151,7 +152,7 @@ public class CornManager : MonoBehaviour
|
|||
break;
|
||||
case CornCondition.Spilled:
|
||||
// 同時に飛び出したとき用に演出をばらつかせる
|
||||
this.CallWaitForSeconds(Random.Range(0f, .5f), () => cornSpilledSubject.OnNext(condition.Previous));
|
||||
corn.CallWaitForSeconds(Random.Range(0f, .5f), () => cornSpilledSubject.OnNext(condition.Previous));
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(nameof(condition), condition, null);
|
||||
|
|
|
|||
Loading…
Reference in New Issue