void Update()
    {
        if (SaveStats.saveClass != null)
        {
            wop.text = "Wallys on person: " + SaveStats.saveClass.moneyOnPerson.ToString();
            wob.text = "Wallys in bank: " + SaveStats.saveClass.moneyOnBank.ToString();
        }
        if (menus == Menus.main || menus == Menus.upgrade)
        {
            mainMenuCam.depth = 1;
        }
        else
        {
            mainMenuCam.depth = -1;
        }
        if (upgrading == true)
        {
            movement.NewDay();
        }
        if (dead == true)
        {
            menus = Menus.upgrade;
            upgradeMenu.Dead();
            AIManager.wantedState = false;
            openVault.NewDay();
        }
        if (endDay == true && InterfaceManager.currentDay != endGame.maxDays)
        {
            upgradeMenu.EndDay();
            openVault.NewDay();
        }
        else if (InterfaceManager.currentDay == endGame.maxDays && endDay == true && day == false)
        {
            endGame.endgame();
            menus = Menus.end;
            day   = true;
            SaveStats.saveClass.moneyOnBank = SaveStats.saveClass.moneyOnPerson;
        }
        if (upgradeMenu.endDAY == true)
        {
            menus = Menus.upgrade;
            print(menus);
        }
        if (inGameStaticInterface == true)
        {
            menus = Menus.ingame;
        }

        if (menus != Menus.none)
        {
            Movement.movementStuck = true;
            playing = false;
            interfaceCanvas.enabled = false;
            inMenu           = true;
            Cursor.lockState = CursorLockMode.None;
        }
        else
        {
            Movement.movementStuck = false;
            playing = true;
            interfaceCanvas.enabled = true;
            inMenu           = false;
            Cursor.lockState = CursorLockMode.Locked;
        }
        if (Input.GetButtonDown("Cancel"))
        {
            if (menus == Menus.ingame)
            {
                menus = Menus.none;
            }
            else if (menus == Menus.pause)
            {
                menus = Menus.none;
            }
            else if (menus == Menus.none)
            {
                menus = Menus.pause;
            }
        }


        if (menus == Menus.main)
        {
            mainMenuCanvas.enabled = true;
            if (everPlayed == true)
            {
                continueButton.SetActive(true);
            }
            else
            {
                continueButton.SetActive(false);
            }
        }
        else
        {
            mainMenuCanvas.enabled = false;
        }

        if (menus == Menus.pause)
        {
            pauseMenuCanvas.enabled = true;
        }
        else
        {
            pauseMenuCanvas.enabled = false;
        }
        if (menus == Menus.upgrade)
        {
            upgradeMenuCanvas.enabled = true;
        }
        else
        {
            upgradeMenuCanvas.enabled = false;
        }
        if (menus == Menus.difficulty)
        {
            difficultyCanvas.enabled = true;
        }
        else
        {
            difficultyCanvas.enabled = false;
        }
        if (menus == Menus.end)
        {
            endGameCanvas.enabled = true;
        }
        else
        {
            endGameCanvas.enabled = false;
        }
        if (menus == Menus.explanation)
        {
            explane.enabled = true;
        }
        else
        {
            explane.enabled = false;
        }
    }