19 lines
430 B
C#
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; }
|
|
}
|