Advertisement
Guest User

Referance (only a small part)

a guest
Apr 7th, 2020
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. public Rigidbody rb;
  2. public GameObject SpeedDial;
  3.  
  4. public void Update()
  5.         {  
  6.             SpeedDial.GetComponent<RotateSpeedDial>();
  7.             rb = this.GetComponent<Rigidbody>();
  8.             RotateSpeedDial.ShowSpeed(rb.velocity.magnitude,0,100);
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement