- Home /
Question by
matheuswillame · May 10, 2017 at 02:28 PM ·
unity 5development
Travel between the cube faces (transform.Rotate)
I want to travel between the faces of the cube, I want to stop the rotation when the y axis is at 90.00f and continue, if the button is pressed again and for when the axis is 180.00f and so continuously. The code below causes the cube to run perpetually, I want to stop, increment a variable with "variable + = 90.00f;" And continue to run if you press button A again. Please, can someone give me an example?
capturar.png
(12.5 kB)
Comment
Your answer
Follow this Question
Related Questions
Strange issue of MacBook,access Denied to Internet,when required by any Package/Plugin 0 Answers
Whether the improved standard shader? 0 Answers
BaseEvent Data Not Working for IOS 0 Answers
Help with pixel perfect, thanks. 2 Answers
IAP Windows Universal 0 Answers