API_Module_Device.cs 892 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. 
  2. using SC.XR.Unity.Module_Device;
  3. using System;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using UnityEngine;
  7. public class API_Module_Device {
  8. public static GSXRDevice Current {
  9. get {
  10. return Module_Device.getInstance.Current;
  11. }
  12. }
  13. public static bool IsGSXRAndroidDevice {
  14. get {
  15. if (API_GSXR_Slam.plugin is GSXRPluginAndroid ) {
  16. return true;
  17. }
  18. return false;
  19. }
  20. }
  21. public static bool IsGSXRWinDevice {
  22. get {
  23. if (API_GSXR_Slam.plugin is GSXRPluginWin) {
  24. return true;
  25. }
  26. return false;
  27. }
  28. }
  29. public static bool IsOtherDevice {
  30. get {
  31. if (API_GSXR_Slam.plugin is GSXRPluginOther) {
  32. return true;
  33. }
  34. return false;
  35. }
  36. }
  37. }