update coordinate text
This commit is contained in:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user