Ok, so I'm trying to rotate my object, while a certain variable is not equal to another variable, this is the script I got.
As soon as I try to run this, Unity just freezes and I have to hardreset it. Is there a way to make my object turn smoothly for only 90 degrees each time and then make it stop until the next input is given.
asked May 23 '11 at 05:53 PM
Perhaps you can use If condition along with various flags to achieve what you want. Since update already does what you want your While loop to do.