Created by David Fraj 2016-02-20 View revision File rotar.cs Added Side-by-side diff More Ignore whitespace Hide word diff +using UnityEngine; +using System.Collections; + +public class Rotar : MonoBehaviour { + + float x; + float y; + float z; + + // Use this for initialization + void Start () { + this.x = Random.Range (-3, 3); + this.y = Random.Range (-3, 3); + this.z = Random.Range (-3, 3); + } + + // Update is called once per frame + void Update () { + this.transform.Rotate (new Vector3 (this.x, this.y, this.z)); + } +}