333GameStudio

LockPositionZ

Jun 19th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Update () {
  2.  
  3.      transform.position.z = Mathf.Clamp(transform.position.z, 0, 0);
  4.      
  5.     }
Advertisement
Add Comment
Please, Sign In to add comment