Exemple #1
0
    public override void OnInspectorGUI()
    {
        GenerateLevel mapGen = (GenerateLevel)target;

        if (DrawDefaultInspector())
        {
            if (mapGen.autoUpdate)
            {
                mapGen.GenMap();
            }
        }

        if (GUILayout.Button("Generate"))
        {
            mapGen.GenMap();
        }
    }