Exemplo n.º 1
0
    void Death()
    {
        if (currentHealth <= 0)
        {
            SceneManager.LoadScene("Lose Screen");
            gameManager.HighScoreUpdate();
        }

        if (currentHealth >= 0)
        {
            Debug.Log("Working");
            Respawn();
        }
    }