初始化
This commit is contained in:
19
UnityGame/Assets/Scripts/ThirdParty/Unity-Logs-Viewer/Reporter/Test/Rotate.cs
vendored
Normal file
19
UnityGame/Assets/Scripts/ThirdParty/Unity-Logs-Viewer/Reporter/Test/Rotate.cs
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user