mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 20:13:02 +00:00
correctly position the minimap
This commit is contained in:
parent
3d81bd25ca
commit
19b6c25432
1 changed files with 1 additions and 2 deletions
|
@ -210,8 +210,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
|
||||
// update position of UI
|
||||
|
||||
int worldSize = mapSize * 4;
|
||||
Vector3 mapPos = - new Vector3(this.FocusPos.x, this.FocusPos.z, 0f) * mapSize / (float)worldSize;
|
||||
Vector3 mapPos = - new Vector3(this.FocusPos.x, this.FocusPos.z, 0f) * (mapSize / (float)mapEdge);
|
||||
mapImage.rectTransform.localPosition = mapPos;
|
||||
|
||||
// update rotation of UI
|
||||
|
|
Loading…
Reference in a new issue