2025-01-02 12:15:45 +08:00

19 lines
545 B
C#

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);
}
}
}