Hello All,
Right now I have an object that rotates
an increment each time a button is clicked.
You have to keep clicking the button to keep the object moving.
The behavior I’d like is for the object to rotate while the button is being held down.
This is my code:
function OnMouseDown ()
{
audio.PlayOneShot(increase);
aim.transform.Rotate (Vector3.up * speed);
}
Thanks for the help,
Richard
Hey, I’m only an animator.