Rotate.cs 287 B

123456789101112131415
  1. using UnityEngine;
  2. using System.Collections;
  3. namespace Devdog.SciFiDesign.UI
  4. {
  5. public class Rotate : MonoBehaviour
  6. {
  7. public Vector3 rotationAxis;
  8. protected void Update()
  9. {
  10. transform.Rotate(rotationAxis * Time.deltaTime);
  11. }
  12. }
  13. }