-----------------C# Code-----------------
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class rotation : MonoBehaviour {
void Update ()
{
transform.Rotate (new Vector3 (x,y,z) * Time.deltaTime * 2);
}
}
/*x,y,z are angles for example x=45y=45z=90*/
No comments:
Post a Comment