void Update() { if (activate) { ple.Emit(); } if (ple.list.Count == 0 && EnemyParent.childCount == 0) { if (CameraFix) { c4c.UnFix(); } Destroy(gameObject); } }
void FixedUpdate() { if (!Activate && Wave.list.Count == 0 && WaveObj.childCount == 0) { WaveClear(); } if (Activate) { Wave.Emit(); if (Wave.list.Count == 0) { Activate = false; } } TimeStrict(); }