27 lines
550 B
C#
27 lines
550 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using XRLib;
|
|
using XRLib.UI;
|
|
|
|
namespace XED.UI
|
|
{
|
|
public class UI_DistanceLabel : UIBase
|
|
{
|
|
private TextMeshProUGUI text_Distance;
|
|
|
|
public void LabelSetting(Vector3 pos, int value)
|
|
{
|
|
if (value == 0)
|
|
{
|
|
gameObject.SetActive(false);
|
|
return;
|
|
}
|
|
|
|
gameObject.SetActive(true);
|
|
transform.transform.position = pos;
|
|
text_Distance.text = value.ToString();
|
|
}
|
|
}
|
|
}
|