RotSelf.cs 282 B

123456789101112
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class RotSelf : MonoBehaviour
  5. {
  6. public Vector3 rotationSpeed = new Vector3(0, 60, 0);
  7. void Update()
  8. {
  9. transform.Rotate(rotationSpeed * Time.deltaTime, Space.Self);
  10. }
  11. }