- Home /
how to make the character stops temporarily in the start
hello!
i just want to make the charachter stops for 30 seconds to play a 30 audio file like someone is telling a story and the character must not move for the whole 30 seconds for the story to finish
Comment
How are you controlling movement now? Put a bool in the top of that saying
if(speechInProgress)
return;
Answer by adnirjhar · Feb 01, 2014 at 09:42 PM
private bool GameStarted = false;
void Update()
{
if (Time.timeSinceLevelLoad >30)
{
GameStarted = true;
}
if (GameStarted)
{
//do your stuff
}
}
Your answer
![](https://koobas.hobune.stream/wayback/20220613132259im_/https://answers.unity.com/themes/thub/images/avi.jpg)