Ejemplo n.º 1
0
 public override void OnInspectorGUI()
 {
     DrawDefaultInspector();
     if (GUILayout.Button("Generate Interior"))
     {
         AreaController controller = (AreaController)target;
         controller.GenerateArea(1, 5, 5);
     }
     if (GUILayout.Button("Generate Exterior"))
     {
         AreaController controller = (AreaController)target;
         controller.GenerateArea(0, 25, 25);
     }
 }