dronkowitz

Spin.cs

Aug 18th, 2021 (edited)
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Spin : MonoBehaviour
  6. {
  7.     // Start is called before the first frame update
  8.     void Start()
  9.     {
  10.        
  11.     }
  12.  
  13.     // Update is called once per frame
  14.     void Update()
  15.     {
  16.         transform.Rotate(Vector3.up, 180 * Time.deltaTime); // The rotate speed can be higher or lower depending on how the user wants to set it
  17.     }
  18. }
  19.  
Add Comment
Please, Sign In to add comment