Advertisement
LittleAngel

Clamp no clamp!

Jun 26th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1.  
  2. depth += (Input.GetAxis ("Vertical") * speed * Time.deltaTime);
  3. Debug.Log ("Before: " + depth);
  4. Mathf.Clamp (depth, -100.0f, 100.0f);
  5. Debug.Log ("After: " + depth);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement