Exemplo n.º 1
0
    public void Hit()
    {
        gameObject.GetComponent <AudioSource>().Play();
        if (!controller.dodge)
        {
            live--;
        }

        doge_count -= 2;
        if (doge_count < 0)
        {
            doge_count = 0;
        }
        controller.GetDamage();
    }