Files
tianrunCRM/Assets/CoolapeFrame/3rd/Unity-Logs-Viewer/Reporter/Test/Rotate.cs

20 lines
269 B
C#
Raw Normal View History

2020-07-04 14:41:25 +08:00
using UnityEngine;
using System.Collections;
public class Rotate : MonoBehaviour
{
Vector3 angle;
void Start()
{
angle = transform.eulerAngles;
}
void Update()
{
angle.y += Time.deltaTime * 100;
transform.eulerAngles = angle;
}
}