예제 #1
0
    private void New()
    {
        // create starting nodes
        settings = new TerrainModule();
        savepath = "";

        GeneratorNode g1 = new GeneratorNode(100, 100);

        g1.seed = Random.Range(-100000, 100000);
        OutputNode output = new OutputNode(700, 100);

        output.Connect(g1, 0);

        settings.nodes.Add(g1);
        settings.nodes.Add(output);

        // create windows to represent nodes
        windows.Clear();

        windows.Add(new NodeWindow(g1));
        windows.Add(new NodeWindow(output));
    }