Ejemplo n.º 1
0
        /// <Summary>
        /// Set the default dungeon parts.
        /// </Summary>
        public static DungeonPartsMasterData GetDefaultDungeonParts()
        {
            DungeonPartsMasterData dungeonParts = Resources.Load <DungeonPartsMasterData>(path + fileName);

            if (dungeonParts == null)
            {
                Debug.LogWarning("Dungeon parts prefab 'DefaultParts' is missing...");
            }

            return(dungeonParts);
        }
Ejemplo n.º 2
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");
        }
Ejemplo n.º 3
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;
        }