Question by
udeveloping · Dec 14, 2017 at 06:55 PM ·
crashupdatelooploops
HOW to USE LOOPS withinh Update???
HI Guys!!! i have fought with this!!! hehehe
void Update(){
While(condition){
//actions
}
}
Why would i do something like this? simple!! some situations could need it!! for example, if i try to develop some code for a spaceship boss, i could organize the coder better if i do it like that!! but if i use Coroutines Actions inUpdate keep executiing while Coroutine does its job!!! could somebody give me some example code?? THANKS xD
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612144608im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
While loop crashing all the time with breaks,While loop crashing constantly 0 Answers
For loop not working 1 Answer
Unity Project friert ein (OnPlayMode) 0 Answers
Breaking out of the right loop 1 Answer
Why this script crashes Unity 1 Answer