public void SavePressed() { if (CurrentLang == null) { return; } ApplyStateToLang(); Debug.Log("Saving '" + CurrentLang.ToString() + "'"); LanguageIO.SaveLanguage(CurrentLang); }
public void NewButtonPressed() { if (IsValidLangName(NewLangIn.text) == null) { string name = NewLangIn.text; NewLangIn.text = ""; // Add new empty language file. var lang = new Language(); lang.Name = name; LanguageIO.SaveLanguage(lang); Debug.Log("Added new language '" + name + "'"); SpawnFromFolderContents(); } }