SpoitDic.cs 447 B

12345678910111213141516
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class SpoitDic : MonoBehaviour
  6. {
  7. public Transform tagpos;
  8. public Text text;
  9. public Transform camera;
  10. void Update()
  11. {
  12. //float dic = Vector3.Distance(new Vector3( tagpos.position.x,0,tagpos.position.z), new Vector3(camera.position.x,0,camera.position.z) );
  13. // text.text = dic.ToString("F2")+" M";
  14. }
  15. }