don't draw hud when input should not be read

This commit is contained in:
in0finite 2019-07-22 21:18:31 +02:00
parent d53a8f1c5f
commit 13f94bf27d
2 changed files with 3 additions and 3 deletions

View file

@ -123,7 +123,7 @@ namespace SanAndreasUnity.Behaviours.Peds.States
{
base.OnDrawHUD();
if (!UIManager.Instance.UseTouchInput)
if (!UIManager.Instance.UseTouchInput || !GameManager.CanPlayerReadInput())
return;
// left side: movement buttons: arrows

View file

@ -273,9 +273,9 @@ namespace SanAndreasUnity.Behaviours.Peds.States
public virtual void OnDrawHUD()
{
if (!UIManager.Instance.UseTouchInput)
if (!UIManager.Instance.UseTouchInput || !GameManager.CanPlayerReadInput())
{
// we are not using touch input
// we are not using touch input, or we should not read input right now
// make sure that custom input is resetted
CustomInput.Instance.ResetAllInput();
return;