PivotRotation.cs 227 B

123456789101112
  1. using System;
  2. using UnityEngine;
  3. public class PivotRotation : MonoBehaviour
  4. {
  5. private void Update()
  6. {
  7. base.transform.Rotate(0f, 0f, Time.deltaTime * this.rotationSpeed);
  8. }
  9. public float rotationSpeed = 1f;
  10. }