rabidus-test/Assets/Scripts/ObjectRotate.cs

17 lines
260 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ObjectRotate : MonoBehaviour
{
[SerializeField]
private Vector3 _vector;
private void Update()
{
transform.Rotate(_vector);
}
}