using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class SpoitDic : MonoBehaviour { public Transform tagpos; public Text text; public Transform camera; void Update() { //float dic = Vector3.Distance(new Vector3( tagpos.position.x,0,tagpos.position.z), new Vector3(camera.position.x,0,camera.position.z) ); // text.text = dic.ToString("F2")+" M"; } }