private void readExcel(string url) { if (string.IsNullOrEmpty(url)) { return; } if (excelDict == null) { excelDict = new Dictionary <string, ExcelStateObj>(); } excelDict.Clear(); excelName = System.IO.Path.GetFileNameWithoutExtension(url); List <ExcelStateObj> excelList = ExcelFunction.ReadExcel(url); for (int i = 0; i < excelList.Count; i++) { excelDict[excelList[i].ExcelName] = excelList[i]; } List <string> list = new List <string>(excelDict.Keys); tables = list.ToArray(); currentTable = 0; //Debug.Log(excelDict.Count+"--"+tables.Length); }