AgoraVideoJo.cs 439 B

1234567891011121314151617181920
  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. IEnumerator JoinChannel(float times)
  12. {
  13. yield return new WaitForSeconds(times);
  14. AgoraVideoAudioManager.Instance.JoinChannel();
  15. AppManager.Instance.MeshPoint.SetActive(true);
  16. }
  17. }