Exemplo n.º 1
0
        public void changeRoom(DungeonModel model, Dir direction)
        {
            Dir oppositeDir = Positions.opposite(direction);
            currentRoom.exitAndDestroy(oppositeDir);

            currentRoom = makeCurrent(model.currentRoom);
            currentRoom.enterAndEnable(direction);
        }
Exemplo n.º 2
0
 public void generateDungeon(DungeonModel model)
 {
     updateCurrentRoom(model.currentRoom);
 }
Exemplo n.º 3
0
        void Start()
        {
            dungeonModel = new DungeonModel();

            dungeonCont = Instantiate(scaleObject) as GameObject;
            dungeonCont.name = "Dungeon Cont";
            dungeonCont.transform.SetParent(transform, false);
            //dungeonCont.centerScale(transform);

            uiCont = Instantiate(scaleObject) as GameObject;
            uiCont.name = "UI Cont";
            uiCont.transform.SetParent(transform, false);
            //uiCont.centerScale(transform);
        }
Exemplo n.º 4
0
 public void generateDungeon(DungeonModel model)
 {
     updateCurrentRoom(model.currentRoom);
 }