public CharacterSpawners(CharacterSpawnersDef _def) { spawners = new List <CharacterSpawner>(_def.spawners); foreach (var _spawner in spawners) { _spawner.postSpawn += ListenSpawn; _spawner.postDestroy += ListenDestroy; } }
public CharacterSpawners(CharacterSpawnersDef _def) { spawners = new List<CharacterSpawner>(_def.spawners); foreach(var _spawner in spawners) { _spawner.postSpawn += ListenSpawn; _spawner.postDestroy += ListenDestroy; } }
public CharacterSpawners(CharacterSpawnersDef _def) { m_Spawners = new List <CharacterSpawner>(_def.spawners); foreach (CharacterSpawner _spawner in m_Spawners) { _spawner.enabled = false; _spawner.networkView.enabled = true; _spawner.postDestroy += ListenCharacterDestroyed; } }