AgoraVideoJo.cs 498 B

123456789101112131415161718192021
  1. using CScript.App;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class AgoraVideoJo : MonoBehaviour
  6. {
  7. private void Awake()
  8. {
  9. StartCoroutine(JoinChannel(3f));
  10. }
  11. static GameObject vgo;
  12. IEnumerator JoinChannel(float times)
  13. {
  14. yield return new WaitForSeconds(times);
  15. if(DeviceType.type!="YuanNi")
  16. AgoraRTCManager.Instance.JoinChannel();
  17. // AppManager.Instance.MeshPoint.SetActive(true);
  18. }
  19. }