GetAllWinch() public static method

public static GetAllWinch ( Vessel fromVessel = null ) : List
fromVessel Vessel
return List
示例#1
0
 private void UpdateGUIControl()
 {
     if (Input.GetKeyDown(guiToogleKey.ToLower()))
     {
         if (KAS_Shared.GetAllWinch(FlightGlobals.ActiveVessel).Count > 0)
         {
             KAS_Shared.DebugLog(KAS_Shared.GetAllWinch(FlightGlobals.ActiveVessel).Count + " winch has been found on the vessel, showing GUI...");
             KASAddonWinchGUI.ToggleGUI();
         }
         else
         {
             KASAddonWinchGUI.ShowGUI(false);
         }
     }
 }
示例#2
0
 void OnVesselChange(Vessel vess)
 {
     if (vesselOpenGui.Contains(FlightGlobals.ActiveVessel))
     {
         if (KAS_Shared.GetAllWinch(FlightGlobals.ActiveVessel).Count > 0)
         {
             GuiActive = true;
         }
         else
         {
             ShowGUI(false);
         }
     }
     else
     {
         GuiActive = false;
     }
 }