Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //UNITY
- //Script to change constantly the rotation of an object, like the mini drop cubes of minecraft
- //Atach to an object, and it will spen constantly
- var spinSpeed : float = 4; // change the value to change the spin speed
- function Upgrade()
- {
- transform.Rotate(0, 0, spinSpeed * Time.deltaTime);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement