コード例 #1
0
ファイル: DungeonManager.cs プロジェクト: Jacob-Geb/Down
        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);
        }
コード例 #2
0
ファイル: DungeonManager.cs プロジェクト: Jacob-Geb/Down
        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);
        }