Implement pause functionality with UI and input bindings
This commit is contained in:
@@ -33,5 +33,16 @@ namespace Infrastructure.Unity
|
||||
if (Gamepad.current != null)
|
||||
Gamepad.current.SetMotorSpeeds(0f, 0f);
|
||||
}
|
||||
|
||||
public void SetPaused(bool isPaused)
|
||||
{
|
||||
if (Gamepad.current != null)
|
||||
{
|
||||
if (isPaused)
|
||||
Gamepad.current.PauseHaptics();
|
||||
else
|
||||
Gamepad.current.ResumeHaptics();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user