new spawning manager, spawner improvements - now with multiple enemies to spawn, KillTrigger
This commit is contained in:
21
Assets/Scripts/Characters/SpawnerOverrideConfig.cs
Normal file
21
Assets/Scripts/Characters/SpawnerOverrideConfig.cs
Normal 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.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user