Beispiel #1
0
        public void Init()
        {
            var loadedInputMapResource = Resources.Load("InputMap") as GameObject;

            input = loadedInputMapResource.GetComponent <Tilemap>();
            var loadedOutputMapResource = Resources.Load("OutputMap") as GameObject;

            output = loadedOutputMapResource.GetComponent <Tilemap>();
            wfc    = new WFCHumbleObject(input, output, 4, true);
        }
Beispiel #2
0
    public bool wrapping = true;                                        //This handles wrapping elements from the array. if they are wrapping, then edge elements will select items from the other side of the array.
                                                                        //Turning wrapping off decreases solve rate.

    //will need an editor button to run the script
    // Start is called before the first frame update

    public void Run()
    {
        WFCHumbleObject wfcHelper = new WFCHumbleObject(InputMap, outputMap, outputArraySize, wrapping);

        wfcHelper.RunWFC();
    }