Exemplo n.º 1
0
 private void Awake()
 {
     if (playerData == null)
     {
         playerData = FindObjectOfType <PlayerDataContainer>();
     }
     if (enemyData == null)
     {
         enemyData = FindObjectOfType <EnemyDataContainer>();
     }
     //if (projectiles == null) projectiles = FindObjectOfType<ProjectileList>();
     if (spawnerData == null)
     {
         spawnerData = FindObjectOfType <EnemySpawnerData>();
     }
     if (objectsInView == null)
     {
         objectsInView = FindObjectOfType <ObjectsInCameraView>();
     }
 }
 public EnemySpawnerController(EnemySpawnerMaster master, EnemySpawnerConfig config, EnemySpawnerData data)
 {
     this.master = master;
     this.config = config;
     this.data   = data;
 }
Exemplo n.º 3
0
 public EnemySpawnerController(EnemySpawnerMaster enemySpawnerMaster, EnemySpawnerConfig enemySpawnerConfig, EnemySpawnerData enemySpawnerData)
 {
     this.enemySpawnerMaster = enemySpawnerMaster;
     this.enemySpawnerConfig = enemySpawnerConfig;
     this.enemySpawnerData   = enemySpawnerData;
 }