private void DestroyEnemies() { enemiesSpawnObj.StopSpawner(); enemies = GameObject.FindGameObjectsWithTag("Enemy"); foreach (GameObject enemy in enemies) { Destroy(enemy); } }
private void DestroyEnemies() { enemiesSpawnObj.StopSpawner(); enemies = GameObject.FindGameObjectsWithTag("Enemy"); foreach (GameObject enemy in enemies) { Destroy(enemy); } }