script works fine so far but i’m trying to get it so the audio only plays when the video does as it just mask a beeping nose until i click on the plain and it starts but the audio is trying to play before ti click on the plain
function Update () {
if (Input.GetButton("Fire1")) {
if (renderer.material.mainTexture.isPlaying) {
renderer.material.mainTexture.Pause();
}
else {
renderer.material.mainTexture.Play();
}
}
}
any help would be great