mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 04:23:04 +00:00
read input only when minimap is visible
This commit is contained in:
parent
dc37e76e6b
commit
525ca5a287
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
Debug.Log("Minimap started!");
|
||||
}
|
||||
|
||||
if (GameManager.CanPlayerReadInput())
|
||||
if (GameManager.CanPlayerReadInput() && this.IsMinimapVisible)
|
||||
{
|
||||
this.ReadInput();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue