14 lines
256 B
C#
14 lines
256 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Rotator : MonoBehaviour
|
|
{
|
|
public float rotationSpeed = 60f;
|
|
|
|
void Update()
|
|
{
|
|
transform.Rotate(0f, rotationSpeed * Time.deltaTime, 0f);
|
|
}
|
|
}
|