private void StepQuery(ThreadQueue.TaskControl control, object state) { try { if (db != null) { StepState stState = state as StepState; if (stState.Callback != null) { while (stState.Callback(stState.Query, stState.Query.Step(), stState.State)) { } } else { stState.Step = stState.Query.Step(); } } else { throw new Exception("Database not ready!"); } } catch (Exception ex) { Debug.LogError("SQLiteAsync : Exception : " + ex.Message); } }
private void StepQueryComplete(object state) { StepState stState = state as StepState; stState.Callback(stState.Query, stState.Step, stState.State); }