14 lines
257 B
C#
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);
|
|
}
|
|
}
|