private List <string> GetKeys() { List <string> k = new List <string>(); if (LocalizedWords.Count == 0) { Debug.LogWarning(LocalizedWords.Count); } LocalizedWords.ForEach((KeyWord obj) => k.Add(obj.Key)); return(k); }
public string GetWord(string key) { if (LocalizedWords.Count == 0) { Init(); } int index = LocalizedWords.FindIndex((KeyWord obj) => string.Equals(obj.Key, key, StringComparison.OrdinalIgnoreCase)); if (index < 0) { Debug.LogWarning("Wrong Key!"); return(string.Empty); } else { return(LocalizedWords[index].Word); } }