mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-03-05 07:37:17 +00:00
don't draw hud when input should not be read
This commit is contained in:
parent
d53a8f1c5f
commit
13f94bf27d
2 changed files with 3 additions and 3 deletions
Assets/Scripts/Behaviours/Ped/States
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue