Beispiel #1
0
    private void OnHit(int dama)
    {
        if (hp)
        {
            hp.AddDame(dama);
            if (hp.HP <= 0)
            {
                Death();
            }
            if (hp.bar)
            {
                hp.bar.SetActive(true);
            }
        }

        BeingAttacked();
    }