29 lines
595 B
C#
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);
|
|
}
|
|
|
|
}
|