您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

29 行
777 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace DragonCrashers
{
public class UnitDamageDisplayBehaviour : MonoBehaviour
{
[Header("Damage Color Tint")]
public Color damageColorTint;
[Header("Damage Location")]
public Transform damageDisplayTransform;
public delegate void DamageDisplayEventHandler(int newDamageAmount, Transform displayLocation, Color damageColor);
public event DamageDisplayEventHandler DamageDisplayEvent;
public void DisplayDamage(int damageTaken)
{
if(DamageDisplayEvent != null)
{
DamageDisplayEvent(damageTaken, damageDisplayTransform, damageColorTint);
}
}
}
}