i thought this one would work getting the object back on reverse if it reach 10 on the y axis but the object froze at 9.999, anyone know the reason .
Hi MoeFav,
The Update method gets called each frame, hence one could regard it as an endless loop.
Have you already tried to add Debug.Logs to your code to see what is going on during runtime? Add 4 Debug.Logs one before and one after the respective line with the Translate() method call. Log a meaningful message into your console, so you will be able to distinguish between the messages.
the debug.log did help thank you, it was executing but it was going down and up on a small scale so it appeared stuck.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.