Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Update () {
- if (Input.GetKeyDown("mouse 1"))
- transform.localPosition.x = 12;
- else
- transform.localPosition.x = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement