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