19 lines
384 B
C#
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"));
|
|
}
|
|
}
|