private void Start() { SettingsData settings = SaveLoadSystem_JamieG.LoadSettings(); m_musicSlider.value = settings.m_musicVolume; m_SFXSlider.value = settings.m_sfxVolume; m_selectedLanguage = settings.m_chosenLanguage; m_englishButton.interactable = !m_selectedLanguage.Equals("English"); m_portugueseButton.interactable = m_selectedLanguage.Equals("English"); }
public void LoadLanguageFile() { SettingsData settingsData = SaveLoadSystem_JamieG.LoadSettings(); if (settingsData.m_chosenLanguage != null && settingsData.m_chosenLanguage.Equals("Portuguese")) { m_csvFile = m_csvFilePortuguese; } ; LoadDialog(SceneManager.GetActiveScene().buildIndex); }
private void Awake() { base.Awake(); string language = SaveLoadSystem_JamieG.LoadSettings().m_chosenLanguage; if (language == null) { language = "English"; // Change to English for testing } ReadProperties(language); }