2025-05-15 16:05:31 +02:00

14 lines
287 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ObjectRotator : MonoBehaviour
{
[SerializeField] private Vector3 rotationPerSecond;
private void Update()
{
transform.Rotate(rotationPerSecond * Time.deltaTime);
}
}