public void DeactivateShip() { ShipRunning = false; HudElements.SetActive(false); GearScript.GearText.text = ""; }
public void ActivateShip() { HudElements.SetActive(true); ShipRunning = true; Ignition.GetComponent <BoxCollider>().enabled = false; GearScript.GearText.text = "Gear: " + GearScript.CurrentGear; if (GearScript.CurrentGear == 0) { GearScript.GearText.text = "Gear: N"; } }
public void Death() { MasterAudio.PlaySoundAndForget("Death_screen"); MasterAudio.StopAllPlaylists(); MasterAudio.StopAllOfSound("EngineLoop"); MasterAudio.StopAllOfSound("JumpJetLoopR"); MasterAudio.StopAllOfSound("JumpJetLoopL"); MasterAudio.StopAllOfSound("strafeloopL"); MasterAudio.StopAllOfSound("strafeloopR"); MasterAudio.StopAllOfSound("HL_FireLoop"); HudElements.SetActive(false); Dead = true; ShipRunning = false; Time.timeScale = 0; GameOverScreen.SetActive(true); }