public IcCSVFile GetCSVFile(string relativePath, bool bSpecial = false) { IcCSVFile csv = null; //csv = MyTxtResources.GetTmpFile(relativePath); //if (csv != null) // return csv; string fileExtention = "txt"; TextAsset asset = Load <TextAsset>(relativePath, fileExtention, bSpecial); if (asset == null) { UnityEngine.Debug.LogError(string.Format("{0} not found", relativePath)); } else { csv = new IcCSVFile(asset, relativePath); //Resources.UnloadAsset(asset); } // } return(csv); }
public IcCSVFile GetCSVAsset(string szInfo) { IcCSVFile csv = new IcCSVFile(szInfo); return(csv); }