private static bool PreExitLandingView( LandingCamera ____landingCam, ShipLight ____landingLight, ShipAudioController ____shipAudioController ) { _isLandingCamEnabled = false; ____landingCam.enabled = false; ____landingLight.SetOn(false); ____shipAudioController.PlayLandingCamOff(); return(false); }
private static bool PreEnterLandingView( LandingCamera ____landingCam, ShipLight ____landingLight, ShipCameraComponent ____landingCamComponent, ShipAudioController ____shipAudioController ) { _isLandingCamEnabled = true; ____landingCam.enabled = true; ____landingLight.SetOn(true); if (____landingCamComponent.isDamaged) { ____shipAudioController.PlayLandingCamOn(AudioType.ShipCockpitLandingCamStatic_LP); } else { ____shipAudioController.PlayLandingCamOn(AudioType.ShipCockpitLandingCamAmbient_LP); } return(false); }
void Start() { moduleSlots = GetComponentsInChildren <ModuleSlot>(); ToggleModuleSlots(false); rb = GetComponent <Rigidbody>(); landingGear = GetComponentInChildren <LandingGear>(); if (!landingGear) { Debug.LogError("Ship: No landing gear set as child"); } shipComputer = GetComponentInChildren <ShipComputer>(); if (!landingGear) { Debug.LogError("Ship: No ship computer set as child"); } shipLight = GetComponentInChildren <ShipLight>(); if (!landingGear) { Debug.LogError("Ship: No ship light set as child"); } spaceParticles = GetComponentInChildren <ParticleSystem>(); if (!spaceParticles) { Debug.LogError("Ship: No space particles set as child"); } if (cameraRig == null) { Debug.LogError("Ship: No camera rig set in inspector"); } if (playerExit == null) { Debug.LogError("Ship: No player exit set in inspector"); } shipComputer.TogglePower(false); }