Implement pause functionality with UI and input bindings

This commit is contained in:
2025-12-13 16:13:22 +01:00
parent 4ae41b3ce9
commit c1d0af9a39
7 changed files with 354 additions and 4 deletions

View File

@@ -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();
}
}
}
}