IEnumerator ExitShip() { busy = true; Canopy canopy = GetComponentInChildren <Canopy>(); if (!canopy.IsOpen()) { canopy.Use(); } if (fuelPack) { PlayerHUD.instance.DisableFuelPackHUD(); } if (PlayerCamera.instance.IsThirdPerson()) { PlayerCamera.instance.FirstPerson(); } freeLook = false; yield return(new WaitForSeconds(0.75f)); SceneManager.instance.SpawnPlayer(playerExit, rb.velocity); spaceParticles.Stop(); spaceParticles.Clear(); busy = false; }
IEnumerator EnterShip() { busy = true; spaceParticles.Play(); yield return(new WaitForSeconds(0.75f)); Canopy canopy = GetComponentInChildren <Canopy>(); if (canopy.IsOpen()) { canopy.Use(); } if (fuelPack) { PlayerHUD.instance.EnableFuelPackHUD(fuelPack); } busy = false; }