コード例 #1
0
 public void SetProperties(MobSpawnerManager manager)
 {
     this.manager = manager;
 }
コード例 #2
0
    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);
    }