jimmy tremblay-Bernier 86fbe09b20 initial commit
2022-03-12 20:32:56 -05:00

19 lines
384 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyBodyPart : MonoBehaviour
{
protected Enemy owner = null;
public void Setup(Enemy newOwner)
{
owner = newOwner;
}
public void Damage(int damage, bool arrowOnFire)
{
owner.TakeDamage(damage, arrowOnFire, (gameObject.tag == "enemyHead"));
}
}