static void Main()
    {
        WaveFunctionCollapse wfc = new WaveFunctionCollapse();

        wfc.Run();

        wfc.ToImage("./map.png");
        wfc.ToJson("./map.json", "testMap", true);
    }
Beispiel #2
0
    public override void OnInspectorGUI()
    {
        WaveFunctionCollapse myScript = (WaveFunctionCollapse)target;

        base.OnInspectorGUI();
        if (GUILayout.Button("Run WFC"))
        {
            myScript.Run();
        }
    }