Answer the question
In order to leave comments, you need to log in
How to fix Audio Source issue in Unity?
The problem is:
public void Update()
{
if(GameTime == 0)
{
Media.Play();
}
}
Answer the question
In order to leave comments, you need to log in
I would hang up on the event, when GameTime = 0 call an event that will start your music.
Another option, a variable, such as isMediaPlay, as short as you can think of, and when GameTime == 0 && !isMediaPlay play music. But to hang it in the update, as for me, is ugly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question