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