コード例 #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");
        }
コード例 #2
0
ファイル: DrawDungeon.cs プロジェクト: lavumi/DungeonRPG
        /// <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;
        }