using System.Collections; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; using Agora.Util; public class Home : MonoBehaviour { public InputField AppIdInupt; public InputField ChannelInput; public InputField TokenInput; public AppIdInput AppInputConfig; public GameObject CasePanel; public GameObject CaseScrollerView; public GameObject EventSystem; private string _playSceneName = ""; private string[] _baseSceneNameList = { "BasicAudioCallScene", "BasicVideoCallScene" }; private string[] _advancedNameList = { "AudioMixingScene", "AudioSpectrumScene", "ChannelMediaRelayScene", "ContentInspectScene", "CustomCaptureAudioScene", "CustomCaptureVideoScene", "CustomRenderAudioScene", "DeviceManagerScene", "DualCameraScene", "JoinChannelVideoTokenScene", "JoinChannelWithUserAccountScene", "MediaPlayerScene", "MediaPlayerWithCustomDataProviderScene", "MediaRecorderScene", "MetadataScene", "ProcessAudioRawDataScene", "ProcessVideoRawDataScene", "PushEncodedVideoImageScene", "ScreenShareScene", "ScreenShareWhileVideoCallScene", "SetBeautyEffectOptionsScene", "SetEncryptionScene", "SetVideoEncodeConfigurationScene", "StartLocalVideoTranscoderScene", "SpatialAudioWithMediaPlayerScene", "StartDirectCdnStreamingScene", "StartRhythmPlayerScene", //"StartRtmpStreamWithTranscodingScene", "StreamMessageScene", "TakeSnapshotScene", "VirtualBackgroundScene", "VoiceChangerScene" }; private void Awake() { PermissionHelper.RequestMicrophontPermission(); PermissionHelper.RequestCameraPermission(); GameObject content = GameObject.Find("Content"); var contentRectTrans = content.GetComponent(); for (int i = 0; i < _baseSceneNameList.Length; i++) { var go = Instantiate(CasePanel, content.transform); var name = go.transform.Find("Text").gameObject.GetComponent(); name.text = _baseSceneNameList[i]; var button = go.transform.Find("Button").gameObject.GetComponent