thieumao

Di chuyen bang chuot

Jun 27th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.16 KB | None | 0 0
  1.         Vector3 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
  2.         transform.position = Vector3.Lerp(transform.position, mousePos, Time.deltaTime * speed);
Advertisement
Add Comment
Please, Sign In to add comment