예제 #1
0
    public IEnumerator WaitAndCheck()
    {
        changeHealth.text = currentHealth.ToString();
        yield return(new WaitForSeconds(1.0f));

        hitstun = false;
        audioS.PlayHurt();
        if (currentHealth <= 0)
        {
            GameOver();
        }
    }