checkVideo.cs 541 B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using Nfynt;
  4. using UnityEngine;
  5. using UnityEngine.Networking;
  6. using UnityEngine.Video;
  7. public class checkVideo : MonoBehaviour
  8. {
  9. private void OnEnable()
  10. {
  11. // vpw.Unmute();
  12. //this.GetComponent<MediaPlayer>().AudioMuted = false;
  13. WavLoader.Instance.audioSource.Pause();
  14. }
  15. private void OnDisable()
  16. {
  17. // vpw.Mute();
  18. //this.GetComponent<MediaPlayer>().AudioMuted = true;
  19. WavLoader.Instance.audioSource.UnPause();
  20. }
  21. }