update coordinate text

This commit is contained in:
Le Duc Anh
2026-02-01 15:06:13 +07:00
parent ccd6564772
commit 05694b24b9
@@ -73,7 +73,7 @@ namespace PerfectWorld.UI.MiniMap
// TODO: This should be the position of the host player, not hardcoded.
Transform hostTransform = m_pHostPlayer.transform;
Vector3 vecPosHost = hostTransform.position;
Vector3Int currentIntHostPos = new Vector3Int(Mathf.RoundToInt(vecPosHost.x) / 10, Mathf.RoundToInt(vecPosHost.y) / 10, Mathf.RoundToInt(vecPosHost.z) / 10);
Vector3Int currentIntHostPos = new Vector3Int(Mathf.RoundToInt(vecPosHost.x) / 10 + 400, Mathf.RoundToInt(vecPosHost.y) / 10, Mathf.RoundToInt(vecPosHost.z) / 10 + 550);
if (currentIntHostPos != _lastIntHostPos)
{
txtHostPos.text = $"{currentIntHostPos.x}, {currentIntHostPos.z}, ↑{currentIntHostPos.y}";