(Unity)オブジェクトを自動で回転させる

(スクリプト)

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AutoRotate : MonoBehaviour
{
    void Update()
    {
        transform.Rotate(new Vector3(0, 10f, 0) * Time.deltaTime);
    }
}