This repository has been archived on 2026-01-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Frontec/Assets/Rotator.cs
jmaniuvc 2936c48466 Frontec
2025-02-24 12:12:52 +09:00

17 lines
341 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Rotator : MonoBehaviour
{
[SerializeField]
private Vector3 _rotration = Vector3.up;
[SerializeField]
private float _speed = 1;
private void Update()
{
transform.Rotate(_rotration * _speed * Time.deltaTime);
}
}