Files
Loong/Assets/_Loong/Scripts/PlayerDamagable.cs
2025-10-30 10:16:52 +08:00

19 lines
430 B
C#

using System.Collections;
using System.Collections.Generic;
using DragonLi.Frame;
using UnityEngine;
public class PlayerDamagable : MonoBehaviour, IDamagable
{
public Player player;
public void ApplyDamage(float value, object info, Transform _sender)
{
if (player != null)
{
player.ApplyDamage(value, 0, _sender.position, _sender);
}
}
public float Health { get; set; }
}