mirror of
https://projects.caleb-brown.dev/UDRI-XRT/UDRIGEEKCup2024.git
synced 2025-01-22 07:08:51 -05:00
28 lines
556 B
C#
28 lines
556 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace MAVRIC.GEEKCup
|
|
{
|
|
public class TransformTracker : MonoBehaviour
|
|
{
|
|
public Transform target;
|
|
public TMP_Text output;
|
|
|
|
private void Awake()
|
|
{
|
|
if (target == null)
|
|
{
|
|
target = transform;
|
|
}
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
output.text = JsonUtility.ToJson(target.position, true);
|
|
}
|
|
}
|
|
}
|