Module_SDKVersion.cs 970 B

1234567891011121314151617181920212223242526272829303132333435
  1. using SC.XR.Unity;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. namespace SC.XR.Unity.Module_SDKVersion {
  6. public class Module_SDKVersion : MonoBehaviour {
  7. private static Module_SDKVersion mInstance;
  8. public static Module_SDKVersion getInstance {
  9. get {
  10. if (mInstance == null) {
  11. mInstance = new GameObject("SDKVersion").AddComponent<Module_SDKVersion>();
  12. }
  13. return mInstance;
  14. }
  15. }
  16. SDKVersion SDKVersion;
  17. void Awake() {
  18. SDKVersion = Resources.Load<SDKVersion>("SDKVersion");
  19. if (SDKVersion == null) {
  20. DebugMy.Log("SDKVersion Not Exist !", this, true);
  21. }
  22. }
  23. public string GetVersion {
  24. get {
  25. return SDKVersion != null ? SDKVersion.GetVersion : "Version File Not Found !";
  26. }
  27. }
  28. }
  29. }