Quantcast
Channel: Answers for "Moving a GameObject freezes Unity (Possible Infinite Loop)"
Browsing latest articles
Browse All 4 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

Browsing latest articles
Browse All 4 View Live