public void SetProperties(MobSpawnerManager manager) { this.manager = manager; }
void loadChoosenBattleScene() { #if UNITY_EDITOR if (GlobalController.instance.battleChoosen >= 0) { choosenBattle = GlobalController.instance.dataFile.battlesData.battles[GlobalController.instance.battleChoosen]; } else { Debug.LogWarning("DEVELOPMENT battle choosen"); choosenBattle = GlobalController.instance.dataFile.battlesData.battles[developmentBattle]; } #else choosenBattle = GlobalController.instance.dataFile.battlesData.battles[GlobalController.instance.battleChoosen]; #endif Instantiate(choosenBattle.terrain); mobSpawner = Instantiate(choosenBattle.mobSpawner); mobSpawner.transform.SetParent(transform); }