static void Main() { WaveFunctionCollapse wfc = new WaveFunctionCollapse(); wfc.Run(); wfc.ToImage("./map.png"); wfc.ToJson("./map.json", "testMap", true); }
public override void OnInspectorGUI() { WaveFunctionCollapse myScript = (WaveFunctionCollapse)target; base.OnInspectorGUI(); if (GUILayout.Button("Run WFC")) { myScript.Run(); } }