Unity 3D – PickUp – Rotator

1. Create a Cube with Rotator.js

#pragma strict

function Start () {

}

function Update () {
// Time.deltatime, use this function to make your game frame rate independent
transform.Rotate(new Vector3(15,30,45) * Time.deltaTime);
}