Esempio n. 1
0
    public void DeactivateShip()
    {
        ShipRunning = false;
        HudElements.SetActive(false);

        GearScript.GearText.text = "";
    }
Esempio n. 2
0
    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";
        }
    }
Esempio n. 3
0
    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);
    }