InputModeSwitching in InputManager and no more player input during UI pop ups
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user