Hi everybody! I've got three objects with the tag "Gear" So why, when I press the arrow keys, does only one object tagged "Gear" rotate? How can I fix that? (Unity 2.6.1)
This is the code
function OnTriggerStay (other : Collider) {
var meccanismo = GameObject.FindWithTag ("Gear");
transform.Rotate( 0, 0, Input.GetAxis("Vertical")*-13*Time.deltaTime);
meccanismo.transform.Rotate(0, 0, Input.GetAxis("Vertical")*-8*Time.deltaTime);
}