Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function RiseObjectToCoinAmount( collectedObject : GameObject)
- {
- ///we need to change the object to the hud layer
- collectedObject.layer = 8;
- ///make the objects parent the hudcam
- collectedObject.transform.parent = coinAmountText;
- ///move object to the center
- collectedObject.transform.position = Vector3(-20.07361,-10.29299,-3.523046);
- print(collectedObject.transform.position);
- }
Add Comment
Please, Sign In to add comment