Beispiel #1
0
 private void ToggleableSection(String name,
                      ref bool show,
                      GUIRenderer render)
 {
     String toggle = show ? "↑ " + name + " ↑"
              : "↓ " + name + " ↓";
     if (UnityEngine.GUILayout.Button(toggle)) {
       show = !show;
       if (!show) {
     ShrinkMainWindow();
       }
     }
     if (show) {
       render();
     }
 }