Rotate.cs 272 B

12345678910111213141516
  1. using UnityEngine;
  2. namespace ShinySSRR {
  3. public class Rotate : MonoBehaviour {
  4. public Vector3 axis = Vector3.up;
  5. public float speed = 60f;
  6. void Update() {
  7. transform.Rotate(axis * (Time.deltaTime * speed));
  8. }
  9. }
  10. }