123/Assets/Scripts/Rotator.cs

14 lines
256 B
C#
Raw Normal View History

2026-01-27 01:41:07 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Rotator : MonoBehaviour
{
public float rotationSpeed = 60f;
void Update()
{
transform.Rotate(0f, rotationSpeed * Time.deltaTime, 0f);
}
}