Which one of these would you recommend if you would have something happen every second:
-
Start a coroutine in Start() and use while(true){ yield return new WaitForSeconds(1f); } in the coroutine
-
Start a coroutine in Update() and not use while(true)
-
Use InvokeRepeating
Is anyone more performant than the others, or better practise? Is while(true) a bad way to make something happen over and over again?
Thank you!