Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2011
785
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Update ()  {
  2.      if (Input.GetKeyDown("mouse 1"))    
  3.         transform.localPosition.x = 12;
  4.      else
  5.         transform.localPosition.x = 0;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement