Beispiel #1
0
        void GetSettings()
        {
            gameController = GameObject.FindGameObjectWithTag("GameController");
            DungeonSettings ds = gameController.GetComponent <DungeonSettings>();

            dungeonData  = ds.dungeonData;
            floorMapData = ds.GetCurrentFloorData();
            dungeonParts = floorMapData.dungeonParts;
            if (dungeonParts == null)
            {
                DungeonPartsManager.GetDefaultDungeonParts();
            }

            player = GameObject.FindGameObjectWithTag("Player");
        }
Beispiel #2
0
        /// <Summary>
        /// Get settings such as dungeon data from DungeonSettings class.
        /// </Summary>
        protected void GetSettings()
        {
            gameController = GameObject.FindGameObjectWithTag("GameController");
            DungeonSettings ds = gameController.GetComponent <DungeonSettings>();

            dungeonData         = ds.dungeonData;
            currentFloorMapData = ds.GetCurrentFloorData();
            dungeonParts        = currentFloorMapData.dungeonParts;
            if (dungeonParts == null)
            {
                DungeonPartsManager.GetDefaultDungeonParts();
            }
            isDrawOutsideWall = ds.isDrawOutsideWall;
            outsideWallSize   = ds.outsideWallSize;
        }