10 lines
181 B
C#
Raw Normal View History

2025-03-11 15:30:07 +08:00
using UnityEngine;
public class RotateZ : MonoBehaviour
{
void Update()
{
transform.Rotate(new Vector3(0,0,Time.deltaTime * 100.0f), Space.World);
}
}