Guest User

Untitled

a guest
Feb 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. function RiseObjectToCoinAmount( collectedObject : GameObject)
  2. {
  3. ///we need to change the object to the hud layer
  4. collectedObject.layer = 8;
  5.  
  6. ///make the objects parent the hudcam
  7. collectedObject.transform.parent = coinAmountText;
  8.  
  9. ///move object to the center
  10. collectedObject.transform.position = Vector3(-20.07361,-10.29299,-3.523046);
  11.  
  12. print(collectedObject.transform.position);
  13.  
  14. }
Add Comment
Please, Sign In to add comment