Ejemplo n.º 1
0
        public void Build(IDungeonSceneObjectInstantiator objectInstantiator)
        {
            NotifyPreBuild();

            Initialize();
            dungeonModel.ResetModel();

            dungeonBuilder.BuildDungeon(config, dungeonModel);
            markers = dungeonBuilder.PropSockets;

            NotifyPostLayoutBuild();

            if (dungeonBuilder.IsThemingSupported())
            {
                ReapplyTheme(objectInstantiator);
            }
            else
            {
                dungeonBuilder.BuildNonThemedDungeon(sceneProvider, objectInstantiator);
            }

            // Build the navigation
            var navigation = GetComponent <DungeonRuntimeNavigation>();

            if (navigation != null)
            {
                navigation.BuildNavMesh();
            }

            NotifyPostBuild();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Builds the complete dungeon (layout and visual phase)
        /// </summary>
        public void Build()
        {
            Initialize();
            dungeonModel.ResetModel();
            dungeonModel.ToolData = toolOverlayData;

            dungeonBuilder.BuildDungeon(config, dungeonModel);

            NotifyPostLayoutBuild();

            ReapplyTheme();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Builds the complete dungeon (layout and visual phase)
        /// </summary>
        public void Build()
        {
            Initialize();
            dungeonModel.ResetModel();

            dungeonBuilder.BuildDungeon(config, dungeonModel);
            markers = dungeonBuilder.PropSockets;

            NotifyPostLayoutBuild();

            if (dungeonBuilder.IsThemingSupported())
            {
                ReapplyTheme();
            }
            else
            {
                dungeonBuilder.BuildNonThemedDungeon();
            }
        }