22 lines
385 B
C#
22 lines
385 B
C#
using Obvious.Soap;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class UI_PlayerPositionText : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private GameObjectVariable playerGameObject;
|
|
|
|
private TextMeshProUGUI textMesh;
|
|
|
|
private void Awake()
|
|
{
|
|
textMesh = GetComponent<TextMeshProUGUI>();
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
textMesh.text = playerGameObject.Value.transform.position.ToString();
|
|
}
|
|
}
|