jimmy tremblay-Bernier c1bf5a4ca1 initial commit
2022-03-12 22:04:30 -04: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"));
}
}