//--------------------------------------------------------------------- public void Setup(string db_filename, Action <int, int> update_callback, Action finished_callback) { UpdateCallBack = update_callback; FinishedCallBack = finished_callback; #if UNITY_IPHONE || UNITY_STANDALONE_OSX || UNITY_DASHBOARD_WIDGET || UNITY_STANDALONE_LINUX || UNITY_WEBPLAYER Sqlite = new SqliteUnity(db_filename); #else Sqlite = new SqliteWin(); #endif if (!Sqlite.openDb(db_filename)) { EbLog.Note("EbDataMgr.setup() failed! Can not Open File! db_filename=" + db_filename); return; } try { // 加载所有Table数据 HashSet <string> list_tablename = _loadAllTableName(); foreach (var i in list_tablename) { QueLoadTbName.Enqueue(i); } TotalTbCount = QueLoadTbName.Count; } catch (Exception e) { EbLog.Note(e.ToString()); } }
//--------------------------------------------------------------------- public void Setup(string db_filename, Action <int, int> update_callback, Action finished_callback) { UpdateCallBack = update_callback; FinishedCallBack = finished_callback; #if UNITY_IPHONE || UNITY_STANDALONE_OSX || UNITY_DASHBOARD_WIDGET || UNITY_STANDALONE_LINUX || UNITY_WEBPLAYER Sqlite = new SqliteUnity(); #else Sqlite = new SqliteWin(); #endif if (!Sqlite.openDb(db_filename)) { return; } try { // 加载所有Table数据 List <string> list_tablename = _loadAllTableName(); foreach (var i in list_tablename) { QueLoadTbName.Enqueue(i); } TotalTbCount = QueLoadTbName.Count; } catch (Exception) { } }