SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
764 B

4 years ago
  1. using UnityEngine;
  2. namespace ARLocation
  3. {
  4. /// <summary>
  5. /// This static class loads the global configuration for the AR + GPS Location
  6. /// plugin.
  7. ///
  8. /// Any other global functionality of the plugin should be placed here as
  9. /// well.
  10. /// </summary>
  11. static class ARLocation
  12. {
  13. public static readonly ARLocationConfig Config;
  14. static ARLocation()
  15. {
  16. Config = Resources.Load<ARLocationConfig>("ARLocationConfig");
  17. if (Config == null)
  18. {
  19. Debug.LogWarning("Resources/ARLocationConfig.asset not found; creating new configuration from defaults.");
  20. Config = ScriptableObject.CreateInstance<ARLocationConfig>();
  21. }
  22. }
  23. }
  24. }