16 lines
321 B
C#
16 lines
321 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class ObjectRotate : MonoBehaviour
|
|
{
|
|
[SerializeField] private Vector3 _vector;
|
|
[SerializeField] private float _speed = 10;
|
|
|
|
|
|
private void Update()
|
|
{
|
|
transform.Rotate(_vector * _speed * Time.deltaTime);
|
|
}
|
|
}
|