Exemplo n.º 1
0
 /// <inheritdoc/>
 public void OnGUI()
 {
     if (openGUIEvent != null && Event.current.Equals(openGUIEvent))
     {
         Event.current.Use();
         if (dlg == null)
         {
             dlg = DebugGui.MakePartDebugDialog(
                 DialogTitle, group: KISDebugAdjustableAttribute.DebugGroup);
         }
         else
         {
             DebugGui.DestroyPartDebugDialog(dlg);
             dlg = null;
         }
     }
 }
Exemplo n.º 2
0
 /// <inheritdoc/>
 public void OnGUI()
 {
     if (_openGuiEvent == null || !Event.current.Equals(_openGuiEvent))
     {
         return;
     }
     Event.current.Use();
     if (_dlg == null)
     {
         _dlg = DebugGui.MakePartDebugDialog(
             DialogTitle, group: KASDebugAdjustableAttribute.DebugGroup);
     }
     else
     {
         DebugGui.DestroyPartDebugDialog(_dlg);
         _dlg = null;
     }
 }