RemoteSystem.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. 
  2. using SC.XR.Unity;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using static ScenesManager;
  6. public class RemoteSystem : RemoteSingleton<RemoteSystem>
  7. {
  8. public GameObject audioOpen;
  9. public GameObject audioClose;
  10. public GameObject videoOpen;
  11. public GameObject videoClose;
  12. public NormalList sysList;
  13. public override void initShow()
  14. {
  15. base.initShow();
  16. sysList.initList(CustomInfo.sscList);
  17. audioOpen.SetActive(!CustomInfo.isSendAudio);
  18. audioClose.SetActive(CustomInfo.isSendAudio);
  19. videoOpen.SetActive(!CustomInfo.isSendVideo);
  20. videoClose.SetActive(CustomInfo.isSendVideo);
  21. }
  22. public void showOffice()
  23. {
  24. NetWorkHeaders.SetUserSys(CustomInfo.isSendAudio, CustomInfo.isSendVideo, CustomInfo.camIndex);
  25. ScenesManager.Instance.showOffice(SceneType.OfficeWindow);
  26. }
  27. public void audioChoose()
  28. {
  29. CustomInfo.isSendAudio = !CustomInfo.isSendAudio;
  30. audioOpen.SetActive(!CustomInfo.isSendAudio);
  31. audioClose.SetActive(CustomInfo.isSendAudio);
  32. }
  33. public void videoChoose()
  34. {
  35. CustomInfo.isSendVideo = !CustomInfo.isSendVideo;
  36. videoOpen.SetActive(!CustomInfo.isSendVideo);
  37. videoClose.SetActive(CustomInfo.isSendVideo);
  38. }
  39. }