Advertisement
SvetoslavUzunov

Rotate

Mar 30th, 2022
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class Rotate : MonoBehaviour
  4. {
  5.     // Start is called before the first frame update
  6.     void Start()
  7.     {
  8.        
  9.     }
  10.  
  11.     // Update is called once per frame
  12.     void Update()
  13.     {
  14.         transform.Rotate(new Vector3(15, 30, 45) * Time.deltaTime);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement