-
-
Save AG-Dan/0935c5f30247555cacf7a78a57c14063 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using DunGen; | |
using DunGen.Graph; | |
using UnityEngine; | |
public class ModifyDungeonFlowExample : MonoBehaviour | |
{ | |
public RuntimeDungeon RuntimeDungeon = null; | |
public DungeonFlow DungeonFlow = null; | |
private void Start() | |
{ | |
GenerateDungeon(); | |
} | |
private void GenerateDungeon() | |
{ | |
var modifiedFlow = Instantiate(DungeonFlow); | |
// Do something to the modified dungeon flow | |
RuntimeDungeon.Generator.DungeonFlow = modifiedFlow; | |
RuntimeDungeon.Generate(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment