Hello,
I have multiple Icons on my map that should all rotate around the y-axis and I don't know how to interagate with them all stored in that findgameobjectswithtag-array:
private var icons : GameObject[];
function Start () {
icons = GameObject.FindGameObjectsWithTag("Icons");
}
function Update () {
icons.gameObjects.transform.Rotate(Vector3.up);
}
↧