Files
Ultimate-Fishing-Simulator-…/Assets/Scripts/Assembly-CSharp/UI_PlayerPositionText.cs
2026-03-04 09:37:33 +08:00

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();
}
}