Ejemplo n.º 1
0
    IEnumerator Death()
    {
        playerScript.DeathAnim();
        playerScript.dead = true;
        yield return(new WaitForSecondsRealtime(2f));

        SceneManager.LoadScene(SceneManager.GetActiveScene().name);
        UIManager.hasDied = true;
    }