Beispiel #1
0
 public void StartButton_OnClick()
 {
     SceneManager.LoadScene("Level01");
     GameConfigManager.SaveGameSetting(new GameSettings()
     {
         SkipIntro = IntroAskToggle.isOn ? "1" : "0"
     });
 }
    public void OnClick_GameSettingsApplyButton()
    {
        GameSettings gameSettings = new GameSettings()
        {
            Language    = LanguageSlider.value == 0 ? Languages.Polish.ToString() : Languages.English.ToString(),
            SoundVolume = VolumeSlider.value.ToString(),
        };

        TranslationManager.SetCurrentGameLanguage(gameSettings.Language);
        GameConfigManager.SaveGameSetting(gameSettings);
        SetSceneTranslation();

        SetAllPanelsToInactive();
    }