Fix escape key in options panel of icon marketplace download menu
This commit is contained in:
@@ -75,7 +75,8 @@ public class IconMarketplaceManager : MonoBehaviour
|
||||
{
|
||||
if (Keyboard.current.escapeKey.wasPressedThisFrame)
|
||||
{
|
||||
if (downloadPanel.activeSelf || uploadPanel.activeSelf) SwitchPanel(0);
|
||||
if (downloadPanelScript.optionsPanel.activeSelf) downloadPanelScript.optionsPanelSubmitButton.onClick.Invoke();
|
||||
else if (downloadPanel.activeSelf || uploadPanel.activeSelf) SwitchPanel(0);
|
||||
else await SceneManager.LoadSceneAsync("MainMenu");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user