void Update() { if (Input.GetAxis("Mouse ScrollWheel") != 0 && bZoomOn) { ciTrans.Zoom(Input.GetAxis("Mouse ScrollWheel") * ZoomSpeed); } }
// Update is called once per frame void Update() { //for test if (Input.GetKey(KeyCode.A)) { ciTrans.Rotate(1.1f); } if (Input.GetKey(KeyCode.D)) { ciTrans.Rotate(-1.1f); } if (Input.GetKey(KeyCode.S)) { ciTrans.Zoom(0.1f); } if (Input.GetKey(KeyCode.W)) { ciTrans.Zoom(-0.1f); } if (Input.GetKey(KeyCode.G)) { ciTrans.Pitch(0.1f); } if (Input.GetKey(KeyCode.T)) { ciTrans.Pitch(-0.1f); } if (Input.GetKey(KeyCode.F)) { ciTrans.Transport(0.1f * Vector3.forward); } if (Input.GetKey(KeyCode.R)) { ciTrans.Transport(-0.1f * Vector3.forward); } }