1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
-
- using SC.XR.Unity;
- using System.Collections.Generic;
- using UnityEngine;
- using static ScenesManager;
- public class RemoteSystem : RemoteSingleton<RemoteSystem>
- {
- public GameObject audioOpen;
- public GameObject audioClose;
- public GameObject videoOpen;
- public GameObject videoClose;
- public NormalList sysList;
- public override void initShow()
- {
- base.initShow();
- sysList.initList(CustomInfo.sscList);
- audioOpen.SetActive(!CustomInfo.isSendAudio);
- audioClose.SetActive(CustomInfo.isSendAudio);
- videoOpen.SetActive(!CustomInfo.isSendVideo);
- videoClose.SetActive(CustomInfo.isSendVideo);
- }
- public void showOffice()
- {
- NetWorkHeaders.SetUserSys(CustomInfo.isSendAudio, CustomInfo.isSendVideo, CustomInfo.camIndex);
- ScenesManager.Instance.showOffice(SceneType.OfficeWindow);
- }
- public void audioChoose()
- {
- CustomInfo.isSendAudio = !CustomInfo.isSendAudio;
- audioOpen.SetActive(!CustomInfo.isSendAudio);
- audioClose.SetActive(CustomInfo.isSendAudio);
- }
- public void videoChoose()
- {
- CustomInfo.isSendVideo = !CustomInfo.isSendVideo;
- videoOpen.SetActive(!CustomInfo.isSendVideo);
- videoClose.SetActive(CustomInfo.isSendVideo);
- }
- }
|