diff --git a/Assets/Scripts/IconMarketplace/IconMarketplaceManager.cs b/Assets/Scripts/IconMarketplace/IconMarketplaceManager.cs index da41108..7e87f6d 100644 --- a/Assets/Scripts/IconMarketplace/IconMarketplaceManager.cs +++ b/Assets/Scripts/IconMarketplace/IconMarketplaceManager.cs @@ -1,3 +1,4 @@ +using SimpleFileBrowser; using TMPro; using UnityEngine; using UnityEngine.InputSystem; @@ -76,6 +77,7 @@ public class IconMarketplaceManager : MonoBehaviour if (Keyboard.current.escapeKey.wasPressedThisFrame) { if (downloadPanelScript.optionsPanel.activeSelf) downloadPanelScript.optionsPanelSubmitButton.onClick.Invoke(); + else if (uploadPanel.activeSelf && FileBrowser.IsOpen) return; else if (downloadPanel.activeSelf || uploadPanel.activeSelf) SwitchPanel(0); else await SceneManager.LoadSceneAsync("MainMenu"); }