Files
DefendNJ/Assets/_DefendNJ/Scripts/Enemys/DamageBox.cs
2025-09-05 15:44:54 +08:00

29 lines
595 B
C#

using System.Collections;
using System.Collections.Generic;
using DragonLi.Frame;
using UnityEngine;
public class DamageBox : MonoBehaviour, IDamagable
{
public float Health { get; set; }
public Agent agent;
private void Awake()
{
}
/// <summary>
/// Implemenet this function to receive damage
/// </summary>
/// <param name="value"></param>
/// <param name="info"></param>
/// <param name="_sender"></param>
public void ApplyDamage(float value, object info, Transform _sender)
{
agent.ApplyDamage(value, info, _sender);
}
}