コード例 #1
0
        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);
        }
コード例 #2
0
        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);
            }
        }