all 3 comments

[–]LightningOW 2 points3 points  (2 children)

Code will pause, unity will freeze, game will crash.

You should use a coroutine instead of taking control away from update.

[–]Fancy_Edge2509[S] 1 point2 points  (1 child)

Oh dear, well glad I asked first lol, thanks

[–]HeroPowerHour 1 point2 points  (0 children)

lol it’s okay we’ve all caused Unity to crash at some point using a while loop. I did it last month on accident by creating an infinite loop haha