public void Initialize() { m_arChipImg = new Sprite[3][]; for (int i = 0; i < 3; i++) { string szFilePath = "Texture/ChipImg/Standard_" + i; Sprite[] arTmp = Resources.LoadAll <Sprite> (szFilePath); m_arChipImg [i] = arTmp; } m_arIcon = Resources.LoadAll <Sprite> ("Texture/ChipImg/StandardIcon"); m_useChips.Capacity = 5; TextAsset textTmp = Resources.Load <TextAsset>("XML/BaseFolder"); ChipXMlFileMgr.LoadXml(textTmp, m_listChips); for (int i = 0; i < m_listChips.Count; i++) { DBMgr.GetInst().SelectStandard(m_listChips, i); } SuffleChip(); SetPrefebs(); StartCustomChipSet(); }
// Use this for initialization void Start() { string szPath = Application.dataPath + "/xmlFile/ChipFolder/BaseFolder.xml"; ChipXMlFileMgr.LoadXml(szPath, m_Chips); for (int i = 0; i < m_Chips.Count; i++) { } }