BuildConfigMgr.cs 807 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. namespace XRTool.Util
  6. {
  7. public class BuildConfigMgr : Singleton<BuildConfigMgr>
  8. {
  9. private bool isInit = false;
  10. public BuildConfigMgr()
  11. {
  12. if (!BuildConfig.Instance)
  13. {
  14. BuildConfig.Instance = Resources.Load<BuildConfig>("BuildConfig");
  15. }
  16. isInit = BuildConfig.Instance;
  17. BuildConfig.Instance.UserPath = Application.persistentDataPath;
  18. BuildConfig.Instance.LocalPath = Application.streamingAssetsPath;
  19. //BuildConfig.Instance.ServerUrl = "http://file.shadowcreator.com/10001/file/2295";
  20. }
  21. public bool IsInit
  22. {
  23. get { return isInit; }
  24. }
  25. }
  26. }