Exemplo n.º 1
0
    private void OnGUI()
    {
        lc = GameObject.Find("LevelManager").GetComponent <LevelCreator>();
        if (GUILayout.Button("Make Level"))
        {
            lc.EditorCreateChunks(difficulty, size, chunkSize, seed);
        }

        if (GUILayout.Button("Delete Level"))
        {
            lc.DeleteAll();
        }

        difficulty = EditorGUILayout.IntSlider("Difficulty", difficulty, 0, 10);
        size       = EditorGUILayout.IntSlider("MaxSize", size, 0, 10);
        seed       = EditorGUILayout.IntField("Seed", seed);
        chunkSize  = EditorGUILayout.IntField("Number of Chunks", chunkSize);
    }