Skip to content

Instantly share code, notes, and snippets.

@AG-Dan
Created November 21, 2020 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AG-Dan/0935c5f30247555cacf7a78a57c14063 to your computer and use it in GitHub Desktop.
Save AG-Dan/0935c5f30247555cacf7a78a57c14063 to your computer and use it in GitHub Desktop.
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