AgoraVideoJo.cs 381 B

1234567891011121314151617
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class AgoraVideoJo : MonoBehaviour
  5. {
  6. private void Awake()
  7. {
  8. StartCoroutine(JoinChannel(3f));
  9. }
  10. IEnumerator JoinChannel(float times)
  11. {
  12. yield return new WaitForSeconds(times);
  13. AgoraVideoAudioManager.Instance.JoinChannel();
  14. }
  15. }