SimpleRotate.cs 298 B

123456789101112131415
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class SimpleRotate : MonoBehaviour {
  5. public int speed;
  6. // Update is called once per frame
  7. void Update() {
  8. this.transform.Rotate( 0, speed * Time.deltaTime, 0);
  9. }
  10. }