File size: 173 Bytes
94c52e3
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
using UnityEngine;

public class Rotator : MonoBehaviour {
    public float speed = 90f;
    void Update() {
        transform.Rotate(0, speed * Time.deltaTime, 0);
    }
}