예제 #1
0
    public void Damage()
    {
        Debug.Log("HealthScore: " + HealthScore);
        if (HealthScore > 0)
        {
            HealthScore -= 1;
            gameManager.SetHealtLabels(HealthScore);

            if (HealthScore == 0)
            {
                playerAnim.Death();
                gameManager.GameOver();
            }
        }
    }