Ejemplo n.º 1
0
    public void MarioDie()
    {
        LM.LoseLives();
        TM.PauseTimer();

        SoundGuy.Instance.PlaySound("", true);
        SoundGuy.Instance.PlaySound("smb_mariodie", false);
        if (LM.CheckLives())
        {
            Invoke("LoadLoadingScene", 3f);
        }
        else
        {
            Invoke("GameOver", 3f);
        }
    }