SDKVersion.cs 841 B

1234567891011121314151617181920212223242526272829303132333435
  1. using SC.XR.Unity;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. namespace SC.XR.Unity {
  7. [CreateAssetMenu(menuName = "SCConfig/SDKVersion")]
  8. public class SDKVersion : ScriptableObject {
  9. public Version version;
  10. public string GetVersion {
  11. get {
  12. if (string.IsNullOrEmpty(version.Build)) {
  13. return version.Major + "." + version.Minor + "." + version.Revision;
  14. } else {
  15. return version.Major + "." + version.Minor + "." + version.Revision + "." + version.Build;
  16. }
  17. }
  18. }
  19. }
  20. [Serializable]
  21. public class Version {
  22. public string Major;
  23. public string Minor;
  24. public string Revision;
  25. public string Build;
  26. }
  27. }