Guest User

Untitled

a guest
Jul 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function Update() {
  2. var hit : RaycastHit;
  3. if (Physics.Raycast (camera.ScreenPointToRay(Input.mousePosition), hit)){
  4. // and they clicked on something, so move the light there
  5. myCamera.LookAt( hit.position );
  6. }
  7. }
Add Comment
Please, Sign In to add comment