mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-24 11:17:11 +00:00
minimap follows main camera if there is no local ped
This commit is contained in:
parent
2c03d76d4d
commit
e9f01099f0
1 changed files with 5 additions and 2 deletions
|
@ -71,8 +71,11 @@ namespace SanAndreasUnity.Behaviours
|
|||
{
|
||||
get
|
||||
{
|
||||
if (m_ped == null) return Vector3.zero;
|
||||
return m_ped.transform.position;
|
||||
if (m_ped != null)
|
||||
return m_ped.transform.position;
|
||||
if (Camera.main != null)
|
||||
return Camera.main.transform.position;
|
||||
return Vector3.zero;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue