void Update()
    {
        CheckScreenChange();

        if (LoadingPopup.activeSelf)
        {
            if (DragStartedOverMenu)
            {
                DragStartedOverMenu = false;
            }
            return;
        }
        if (Input.GetMouseButtonDown(0))
        {
            DragStartedOverMenu = !Edit.MauseOnGameplay;
        }
        else if (Input.GetMouseButtonUp(0))
        {
            DragStartedOverMenu = false;
        }
        DragStartedGameplay = !DragStartedOverMenu;

        // Interaction

        if (MapLuaParser.IsMapLoaded)
        {
            UberCameraMovement();
        }

        if (Menu.IsMenuOpen())
        {
            return;
        }
        if (Input.GetKey(KeyCode.LeftControl))
        {
            if (Input.GetKeyDown(KeyCode.G) && !IsInputFieldFocused())
            {
                Menu.SlopeToggle.isOn = !Menu.SlopeToggle.isOn;
                MapLuaParser.Current.HeightmapControler.ToogleSlope(Menu.SlopeToggle.isOn);
            }
        }
        else
        {
            if (Input.GetKeyDown(KeyCode.G) && !IsInputFieldFocused())
            {
                Menu.GridToggle.isOn = !Menu.GridToggle.isOn;
                MapLuaParser.Current.HeightmapControler.ToogleGrid(Menu.GridToggle.isOn);
            }
        }


        if (Input.GetKeyDown(KeyCode.F))
        {
            Focus();
        }
    }