SqliteController.cs 989 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // using System;
  2. // using UnityEngine;
  3. // using YooAsset;
  4. //
  5. // namespace GFGGame
  6. // {
  7. // public class SqliteController : SingletonBase<SqliteController>
  8. // {
  9. //
  10. // public void Init(bool logable, string resPath)
  11. // {
  12. //
  13. // string dbPath = null;
  14. // string connectionPath;
  15. // #if UNITY_EDITOR
  16. // dbPath = $"{Environment.CurrentDirectory}/{ResPathUtil.SQLITE_FILE_PATH}";
  17. //
  18. // #else
  19. // dbPath = GetSqlFilePath(resPath);
  20. // #endif
  21. //
  22. // #if !UNITY_EDITOR && UNITY_ANDROID
  23. // connectionPath = "uri=file:" + dbPath;
  24. // #else
  25. // connectionPath = "data source=" + dbPath;
  26. // #endif
  27. // SQLiteHelper.Instance.Init(logable, connectionPath);
  28. // }
  29. //
  30. // private string GetSqlFilePath(string resPath)
  31. // {
  32. // RawFileOperationHandle handle = YooAssets.LoadRawFileAsync(resPath);
  33. // return handle.GetRawFilePath();
  34. // }
  35. //
  36. // }
  37. // }