BuildConfigMgr.cs 823 B

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