コード例 #1
0
    public void Update()
    {
        NewGamePanel.SetActive(menuState == MenuStates.NewGame || menuState == MenuStates.ConfirmNewGame);
        LoadGamePanel.SetActive(menuState == MenuStates.LoadGame);
        ConfirmNewGamePanel.SetActive(menuState == MenuStates.ConfirmNewGame);
        ConfirmNewGamePanelCharacterDescription.text = (CharacterNameField.text + ", " + Sexes[CharacterSexField.value] + " " + career.ToString()).ToUpper();
        ExitConfirm.SetActive(menuState == MenuStates.ExitConfirm);

        if (menuState == MenuStates.NewGame)
        {
            NewGamePanelUpdate();
        }

        currentName = CharacterNameField.text;
        if (currentName != lastName)
        {
            saveExists = GameManager.SaveAlreadyExists(currentName);
            SaveExistsWarning.SetActive(saveExists);
            lastName = currentName;
        }
    }