SpaceHttpAction.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using SC.XR.Unity;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class SpaceHttpAction : Singleton<SpaceHttpAction>
  6. {
  7. public string loginUrl
  8. {
  9. get
  10. {
  11. if (HttpSDKAction.Instance.loginUrl == "")
  12. {
  13. HttpSDKAction.Instance.loginUrl = "https://studio.ghz-tech.com:8843/api/";
  14. }
  15. return HttpSDKAction.Instance.loginUrl;
  16. }
  17. }
  18. public string lobbyUrl
  19. {
  20. get
  21. {
  22. if (HttpSDKAction.Instance.officeSocket == "")
  23. {
  24. HttpSDKAction.Instance.officeSocket = "wss://office.ghz-tech.com:9175/?appId=100009";
  25. }
  26. return HttpSDKAction.Instance.officeSocket;
  27. }
  28. }
  29. public string roomUrl
  30. {
  31. get
  32. {
  33. if (HttpSDKAction.Instance.roomSocket == "")
  34. {
  35. HttpSDKAction.Instance.roomSocket = "wss://office.ghz-tech.com:9180/?token=";
  36. }
  37. return HttpSDKAction.Instance.roomSocket;
  38. }
  39. }
  40. }