Files
taptap2024_GJ_chidouren/Assets/3rd/Unity-Logs-Viewer-master/Reporter/Test/Rotate.cs
2024-10-16 00:03:41 +08:00

20 lines
290 B
C#

using UnityEngine;
using System.Collections;
public class Rotate : MonoBehaviour
{
Vector3 angle;
void Start()
{
this.angle = this.transform.eulerAngles;
}
void Update()
{
this.angle.y += Time.deltaTime * 100;
this.transform.eulerAngles = this.angle;
}
}