public void _Spawn() { if (GameControl.IsGameOver()) { return; } if (IsSpawningStarted()) { if (spawnMode == _SpawnMode.Round) { if (spawnLimit == _SpawnLimit.Infinite) { if (waveList.Count != 0) { return; } } else { if (!waveList[currentWaveID].cleared) { return; } } } else if (!allowSkip) { return; } spawnCD = SpawnWaveFinite(); return; } if (spawnMode != _SpawnMode.Continous) { SpawnWaveFinite(); } else { StartCoroutine(ContinousSpawnRoutine()); } //spawningStarted=true; GameControl.StartGame(); }