1234567891011121314151617181920212223 |
- using System.Collections;
- using System.Collections.Generic;
- using Nfynt;
- using UnityEngine;
- using UnityEngine.Networking;
- using UnityEngine.Video;
- public class checkVideo : MonoBehaviour
- {
- private void OnEnable()
- {
- // vpw.Unmute();
- //this.GetComponent<MediaPlayer>().AudioMuted = false;
- WavLoader.Instance.audioSource.Pause();
- }
- private void OnDisable()
- {
- // vpw.Mute();
- //this.GetComponent<MediaPlayer>().AudioMuted = true;
- WavLoader.Instance.audioSource.UnPause();
- }
- }
|