예제 #1
0
    public void Hit(Throwable throwable)
    {
        if (!canGetHit)
        {
            return;
        }

        SetAnger(anger + throwable.damage);
        throwable.OnHitCharacter(this);
        animator.SetTrigger("Hit");

        hitsSources[Random.Range(0, hitsSources.Length)].Play();
        Destroy(throwable.gameObject);
    }