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(); }
/// <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(); }
/// <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(); } }