void Update() { _nextSpawnTime -= Time.deltaTime; if (_nextSpawnTime <= 0) { SpawnEnemy(); ResetSpawnTime(); } }