示例#1
0
    public override void OnInspectorGUI()
    {
        WallGenerator wallGenerator = target as WallGenerator;

        DrawDefaultInspector();

        if (GUILayout.Button("Generate Wall"))
        {
            wallGenerator.GenerateWall();
        }
    }