private void generateDungeon() { dungeonModel.generateDungeon(); dungeonView = DungeonFactory.makeDungeonView(dungeonCont.transform); dungeonView.generateDungeon(dungeonModel); dungeonCover = Instantiate(Resources.Load("dungeon/ui/cover", typeof(GameObject))) as GameObject; dungeonCover.centerScale(uiCont.transform); GameObject dungeonUIObj = GameObject.Instantiate(Resources.Load("dungeon/ui/dungeonUI", typeof(GameObject))) as GameObject; dungeonUIObj.centerScale(uiCont.transform); dungeonUI = dungeonUIObj.GetComponent <DungeonUI>(); dungeonUI.updateUI(dungeonModel.currentRoom); }
private void generateDungeon() { dungeonModel.generateDungeon(); dungeonView = DungeonFactory.makeDungeonView(dungeonCont.transform); dungeonView.generateDungeon(dungeonModel); dungeonCover = Instantiate(Resources.Load("dungeon/ui/cover", typeof(GameObject))) as GameObject; dungeonCover.centerScale(uiCont.transform); GameObject dungeonUIObj = GameObject.Instantiate(Resources.Load("dungeon/ui/dungeonUI", typeof(GameObject))) as GameObject; dungeonUIObj.centerScale(uiCont.transform); dungeonUI = dungeonUIObj.GetComponent<DungeonUI>(); dungeonUI.updateUI(dungeonModel.currentRoom); }