using System.Collections; using System.Collections.Generic; using UnityEngine; /******************************************************************************* *Create By CG *Function *******************************************************************************/ namespace ZXK.LouDiXvMuNiu { public class AutoRotCtrl : MonoBehaviour { [SerializeField] private float _rotSpeed = 180.0f; private void OnMouseOver() { transform.Rotate(Vector3.forward * Time.deltaTime * _rotSpeed); } } }