From 05694b24b94ae3968648d36e7ad16f4fe09d029b Mon Sep 17 00:00:00 2001 From: Le Duc Anh Date: Sun, 1 Feb 2026 15:06:13 +0700 Subject: [PATCH] update coordinate text --- Assets/PerfectWorld/Scripts/UI/MiniMap/MiniMapUI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/PerfectWorld/Scripts/UI/MiniMap/MiniMapUI.cs b/Assets/PerfectWorld/Scripts/UI/MiniMap/MiniMapUI.cs index 756947cd47..c0ea0c31a9 100644 --- a/Assets/PerfectWorld/Scripts/UI/MiniMap/MiniMapUI.cs +++ b/Assets/PerfectWorld/Scripts/UI/MiniMap/MiniMapUI.cs @@ -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}";