Home > Enterprise >  Adding delay at Start(), only then calling Update()
Adding delay at Start(), only then calling Update()

Time:12-05

I'm learning Unity and have a problem, whose answer I can't seem to find an answer to on the internet. In my game I want to add a delay at the complete start, so it doesn't do anything and only then start calling the Update function. I know I most likely could find a way to declare a timer and every time Update is called ask, if timer has elapsed, but I'm trying to look if it's possible to stop at start, and then continue like nothing happened.

I have tried using coroutines, but from the limited knowledge I have, I think coroutines are running alongside the code over several frames and that means Update is already being called. In one post somewhere I saw a mention about some timers?, so maybe that could work, however I couldnt understand it. Please ask me any questions if I need to be more specific and thank u for your time.

CodePudding user response:

You can disable (enter image description here

  • Related