1using System.Collections; 2using System.Collections.Generic; 3using UnityEngine; 4 5public class Rotate : MonoBehaviour 6{ 7 void Update() 8 { 9 transform.Rotate(new Vector3(0f, 10f, 0f) * Time.deltaTime); 10 } 11}