You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
331 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class Rotator : MonoBehaviour {
  5. public float speed;
  6. // Use this for initialization
  7. void Start () {
  8. }
  9. // Update is called once per frame
  10. void Update ()
  11. {
  12. transform.Rotate(Vector3.up * speed * Time.deltaTime);
  13. }
  14. }