Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma strict
- var distance : float = 1.5f;
- function Update () {
- transform.position = transform.position + transform.forward * distance * Time.deltaTime;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement