Advertisement
guinunez

RotadorRandom.cs

Jul 6th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class RotadorRandom : MonoBehaviour {
  6.  
  7.     public float rotar;
  8.  
  9.     // Use this for initialization
  10.     void Start () {
  11.  
  12.         GetComponent<Rigidbody2D>().angularVelocity = Random.value * rotar;
  13.        
  14.     }
  15.    
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement