1234567891011121314151617181920212223242526272829 |
- using System.Collections;
- using System.Collections.Generic;
- using Nfynt;
- using UnityEngine;
- public class webglvideocheck : MonoBehaviour
- {
- public bool ismute;
- private void OnEnable()
- {
- if(ismute)
- {
- this.GetComponent<NVideoPlayer>().Mute();
- }
- else
- {
- this.GetComponent<NVideoPlayer>().Unmute();
- }
- Invoke("playerdelay",1f);
- }
- void playerdelay()
- {
- this.GetComponent<NVideoPlayer>().Play();
- }
- }
|