usingUnityEngine;usingSystem.Collections;publicclassRotar:MonoBehaviour{floatx;floaty;floatz;// Use this for initializationvoidStart(){this.x=Random.Range(-3,3);this.y=Random.Range(-3,3);this.z=Random.Range(-3,3);}// Update is called once per framevoidUpdate(){this.transform.Rotate(newVector3(this.x,this.y,this.z));}}
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.