Quantcast
Channel: Answers for "Moving a GameObject freezes Unity (Possible Infinite Loop)"
Browsing all 4 articles
Browse latest View live

Answer by devilkkw

while(Time.time - savedTime <= 5) andwhile (Time.time - savedTime >= 5 )is not correct,because u have 2 possibili =5 and make error.try while(Time.time - savedTime < 5) andwhile (Time.time -...

View Article


Answer by Eric5h5

All of your while loops are infinite loops. They will run forever since there is no possibility for the exit condition to be true. You have to wait until the next frame for Time.time to increase, but...

View Article


Answer by devilkkw

while(Time.time - savedTime <= 5) andwhile (Time.time - savedTime >= 5 )is not correct,because u have 2 possibili =5 and make error.try while(Time.time - savedTime < 5) andwhile (Time.time -...

View Article

Answer by Eric5h5

All of your while loops are infinite loops. They will run forever since there is no possibility for the exit condition to be true. You have to wait until the next frame for Time.time to increase, but...

View Article
Browsing all 4 articles
Browse latest View live