Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma strict
- var player : GameObject;
- var depthOffset : int = -10;
- var verticalOffset : int = 0;
- function Update () {
- transform.position.z = depthOffset;
- transform.position.y = verticalOffset;
- transform.position.x = player.transform.position.x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement