read input only when minimap is visible

This commit is contained in:
in0finite 2020-05-01 19:04:14 +02:00
parent dc37e76e6b
commit 525ca5a287

View file

@ -280,7 +280,7 @@ namespace SanAndreasUnity.Behaviours
Debug.Log("Minimap started!");
}
if (GameManager.CanPlayerReadInput())
if (GameManager.CanPlayerReadInput() && this.IsMinimapVisible)
{
this.ReadInput();
}