| using System.Collections; | 
| using System.Collections.Generic; | 
| using UnityEngine; | 
|   | 
| public class DamageLine : MonoBehaviour | 
| { | 
|   | 
|     public TextEx damageTypeLabel; | 
|   | 
|     public TextEx damageValueLabel; | 
|   | 
|     public void SetDamage(int damageType, long damage) | 
|     { | 
|         damageTypeLabel.SetActive(false); | 
|         damageValueLabel.text = BattleUtility.DisplayDamageNum(damage, damageType); | 
|     } | 
|   | 
|     public void SetDamage(long damage) | 
|     { | 
|         damageTypeLabel.SetActive(false); | 
|         damageValueLabel.text = damage.ToString(); | 
|     } | 
|   | 
|     public void SetDamage(BattleDmg damage) | 
|     { | 
|         damageTypeLabel.SetActive(false); | 
|         damageValueLabel.text = BattleUtility.DisplayDamageNum(damage); | 
|     } | 
| } |