Advertisement
leomovskii

RotateAnimation

Nov 13th, 2023
829
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.16 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class RotateAnimation : MonoBehaviour {
  4.  
  5.     public Vector3 speed;
  6.    
  7.     void Update() {
  8.         transform.Rotate(speed * Time.deltaTime);
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement