Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Update () {
- depth += (Input.GetAxis ("Vertical") * speed * Time.deltaTime);
- Debug.Log ("Before: " + depth);
- Mathf.Clamp (depth, -100.0f, 100.0f);
- Debug.Log ("After: " + depth);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement