using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BNG {
///
/// Attach this Component to any EmeraldAISystem object you wish to deal damage to.
///
public class EmeraldAIDamageable : Damageable {
public override void DealDamage(float damageAmount, Vector3? hitPosition = null, Vector3? hitNormal = null, bool reactToHit = true, GameObject sender = null, GameObject receiver = null) {
// Limb Damage
if (GetComponent() != null) {
GetComponent().DamageArea((int)damageAmount, EmeraldAI.EmeraldAISystem.TargetType.Player, null, 400);
}
// Core Damage
else if (GetComponent() != null) {
GetComponent().Damage((int)damageAmount, EmeraldAI.EmeraldAISystem.TargetType.Player, null, 400);
}
}
}
}