Advertisement
Guest User

Untitled

a guest
May 1st, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. public Vector3 pos;
  2. public Quaternion rot;
  3.  
  4. public void Start(){
  5. pos = transform.position;
  6. rot = transform.rotation;
  7. }
  8.  
  9. public void OnMouseExit(){
  10. transform.position = pos;
  11. transform.rotation = rot;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement