Advertisement
Guest User

spin

a guest
Feb 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Spin : MonoBehaviour
  5. {
  6. public float speed = 10f;
  7.  
  8.  
  9. void Update ()
  10. {
  11. transform.Rotate(Vector3.up, speed * Time.deltaTime);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement