2026-07-14 11:14:13 +03:00

14 lines
257 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Rotator : MonoBehaviour
{
public Vector3 axis;
public float speed;
void Update()
{
transform.Rotate(axis, speed * Time.deltaTime);
}
}