using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Xml; public class Language { private static Dictionary lanDict = new Dictionary(); private static SystemLanguage currentLan; private static bool initialized; public static void Init (SystemLanguage lan) { Debuger.Log("Init Language "+lan.ToString()); initialized = true; currentLan = lan; TextAsset textAsset = (TextAsset)Resources.Load("XML/Config/All/word_config"); XmlDocument xml = new XmlDocument(); xml.LoadXml(textAsset.text); lanDict.Clear (); XmlNode mapNode = xml.SelectSingleNode("data"); XmlNodeList nodeList = mapNode.SelectNodes("item"); for(int i=0; i