public InfoWindow OperWindow(Vessel vessel) { if (PTGUI_Loader.InfoWindowPrefab == null) { return(null); } infoWindow = Instantiate(PTGUI_Loader.InfoWindowPrefab).GetComponent <InfoWindow>(); if (infoWindow == null) { return(null); } infoWindow.transform.SetParent(MainCanvasUtil.MainCanvas.transform); IsVisible = true; currentVessel = vessel; InitializeModules(); UpdateDisplayInfo(); infoWindow.SetInitialState(Instance); return(infoWindow); }