Hi People Im a total newbie and having a small problem on a script in Visual Studio using Unity. Where do i post my question?
The Question: I have a countdown timer on my small game, when it reaches 10 secs a new interactive music should start. It does with this code:
But when it starts it runs multiple time till reaching an absolute mess...
I need to create a bool but not sure exactly how to do this to stop the music getting played several time at once...
Thanks
Harry
The Question: I have a countdown timer on my small game, when it reaches 10 secs a new interactive music should start. It does with this code:
C#:
if (secondsLeft == 10)
{
CountdownMusic.Post(gameObject);
}
I need to create a bool but not sure exactly how to do this to stop the music getting played several time at once...
Thanks
Harry
Last edited by a moderator: