public void CloseAllMainMenuStates(bool closeBottomBar)
    {
        switch (currentMainMenuState)
        {
        case MainMenuState.viewingPosters:
            break;

        case MainMenuState.browsingStrains:
            StopBrowsingStrains(closeBottomBar);
            break;

        case MainMenuState.browsingBongs:
            StopBrowsingBongs(closeBottomBar);
            break;

        case MainMenuState.creatingNewSavegame:
            windowController.CancelCreatingNewSavegame();
            break;

        case MainMenuState.viewingSavegames:
            windowController.CancelViewingSavegames();
            break;

        case MainMenuState.viewingCompany:
            windowController.CancelViewingCompany();
            break;
        }
    }
 void Update()
 {
     if (!controller.manager.canInteract)
     {
         return;
     }
     if (gameObject.activeSelf)
     {
         Ray          ray  = mainCamera.ScreenPointToRay(Input.mousePosition);
         RaycastHit[] hits = Physics.RaycastAll(ray);
         bool         createNewSavegameButtonHit = false;
         foreach (RaycastHit hit in hits)
         {
             //print(hit.transform.name);
             bool hitSmallButton = hit.transform.name.Equals(saveGamesUI_createNewSavegameButton.name);
             bool hitBigButton   = hit.transform.name.Equals(saveGamesUI_createNewSavegamesExpandedButton.name);
             if (hitSmallButton || hitBigButton)
             {
                 if (hitSmallButton)
                 {
                     //saveGamesUI_createNewSavegamesExpandedButton.MouseOver();
                 }
                 MouseOverCreateNewSavegameButton();
                 createNewSavegameButtonHit = true;
                 if (Input.GetMouseButtonUp(0))
                 {
                     controller.StartCreatingNewCompany();
                     saveGamesUI_createNewSavegamesExpandedButton.OffScreen();
                 }
             }
             else if (hit.transform.name.Equals(saveGamesUI_goBackButton.name))
             {
                 if (Input.GetMouseButtonUp(0))
                 {
                     controller.CancelViewingSavegames();
                 }
             }
             else if (hit.transform.tag == "SavegameButton")
             {
                 if (Input.GetMouseButtonUp(0))
                 {
                     Company companyToLoad = database.GetCompany(hit.transform.name);
                     controller.viewingCompanyUIGrouping.currentDispensary = null;
                     controller.viewingCompanyUIGrouping.currentSupplier   = null;
                     controller.viewingCompanyUIGrouping.currentCompany    = companyToLoad;
                     var storeNumber    = 0;
                     var buildingNumber = 0;
                     if (companyToLoad.dispensaries.Count > 0)
                     {
                         storeNumber    = companyToLoad.dispensaries[0].dispensaryNumber;
                         buildingNumber = companyToLoad.dispensaries[0].buildingNumber;
                     }
                     else if (companyToLoad.suppliers.Count > 0)
                     {
                         storeNumber    = companyToLoad.suppliers[0].supplierNumber;
                         buildingNumber = companyToLoad.suppliers[0].buildingNumber;
                     }
                     controller.manager.StartViewingCompany(storeNumber, buildingNumber);
                 }
             }
         }
         if (!createNewSavegameButtonHit)
         {
             MouseLeftCreateNewSavegameButton();
         }
     }
 }