Exemple #1
0
    private void SetGuiState(GUIStates newGuiState)
    {
        //Debug.Log("newGuiState= " + newGuiState);
        guiState = newGuiState;
        DisableGUIs();
        TooltipManager.ClearAllTooltips();

        if (newGuiState == GUIStates.walking)
        {
            SetCursorLock(true);
            gameplayGUI.enabled = true;
            gameplayGUI.SelectSlotIndex(gameplayGUI.selectedSlotIndex);
        }
        else if (newGuiState == GUIStates.personal)
        {
            SetCursorLock(false);
            personalToolbar.enabled = true;
        }
        else if (newGuiState == GUIStates.colony)
        {
            SetCursorLock(false);
            colonyToolbar.enabled = true;
        }
    }