Module_Device.cs 718 B

123456789101112131415161718192021222324252627282930313233
  1. 
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. namespace SC.XR.Unity.Module_Device {
  7. public class Module_Device {
  8. private static Module_Device instance;
  9. public static Module_Device getInstance {
  10. get {
  11. if (instance == null) {
  12. instance = new Module_Device();
  13. }
  14. return instance;
  15. }
  16. }
  17. private GSXRDevice _current;
  18. public GSXRDevice Current {
  19. get {
  20. if (_current == null) {
  21. _current = new GSXRDevice();
  22. }
  23. return _current;
  24. }
  25. }
  26. }
  27. }