new spawning manager, spawner improvements - now with multiple enemies to spawn, KillTrigger

This commit is contained in:
2025-05-21 13:40:14 +02:00
parent 777c90ce50
commit 07eff8a72c
7 changed files with 705 additions and 155 deletions

View File

@@ -0,0 +1,21 @@
// This can be in its own file (e.g., SpawnerConfig.cs) or inside the EnemySpawnerManager.cs file if you prefer.
// For better organization, a separate file is often good.
using UnityEngine;
namespace Beyond
{
[System.Serializable] // Makes it show up in the Inspector when used in a list
public class SpawnerOverrideConfig
{
public EnemySpawner spawner; // Reference to the EnemySpawner instance in the scene
[Tooltip("If assigned, this prefab will override the spawner's own m_prefab.")]
public GameObject overridePrefab;
[Tooltip("If > -1, this will override the spawner's m_enemiesPerSpawnWave. Set to 0 or less to use spawner's default.")]
public int overrideEnemiesPerWave = -1;
// You could add more overrides here if needed, e.g., overrideSpawnRadius, overrideMaxWaveRespawns, etc.
}
}