public SkillInfo Lookup(int id) { SkillInfo info = null; SkillInfoList.TryGetValue(id, out info); return(info); }
void Awake() { instance = this; //path = Application.dataPath + "/Script/UI/skillInfoList.xml"; //xml.Load(path); TextAsset textAsset = (TextAsset)Resources.Load("SkillInfoList", typeof(TextAsset)); xml.LoadXml(textAsset.text); ReadSkillInfo(); }