InputModeSwitching in InputManager and no more player input during UI pop ups

This commit is contained in:
Michal Pikulski
2025-09-25 10:40:17 +02:00
parent bc22fd013e
commit 74e65fdf42
6 changed files with 253 additions and 137 deletions

View File

@@ -96,6 +96,9 @@ public class LevelSwitch : MonoBehaviour
// Setup menu with data and callbacks
menu.Setup(switchData, OnMenuConfirm, OnMenuCancel);
_isActive = false; // Prevent re-triggering until menu is closed
// Switch input mode to UI only
InputManager.Instance.SetInputMode(InputMode.UI);
}
private async void OnMenuConfirm()