Hello all. I have come across a rather strange occurrence that I have been able to find nothing on. When I run my game in a web player, if I minimize that web player and bring it back up, I get a sound that repeats throughout the rest of my scene. It is just a dun dun dun dun dun dun over and over and over again. It appears to be caused by the following script, but I have no idea why. Any suggestions?
using UnityEngine;
using System.Collections;
public class FinalMovieScript : MonoBehaviour {
public MovieTexture movieClip;
public GameObject movieTexture;
public AudioClip audioSound;
int movieCount = 0;
void Start()
{
movieTexture.active = false;
}
void OnMouseDown()
{
if(movieCount < 1)
{
movieTexture.active = true;
movieTexture.renderer.material.mainTexture = movieClip;
movieClip.Play();
audio.Play();
movieCount++;
}
}
void Update()
{
if(movieClip.isPlaying)
{
GameManager.popQuestion = false;
}
else
{
movieTexture.active = false;
GameManager.popQuestion = true;
}
}
}