void LateUpdate() { if (cam != null) { cam.SmoothFollow(startLook + movement, 20, 3, true, true); } }
void LateUpdate() { if (cam != null) { mouseSW -= Input.GetAxis("Mouse ScrollWheel") * 5; mouseSW = Mathf.Clamp(mouseSW, minDist, maxDist); if (control == 0) { cam.MouseView(transform, mouseX, mouseY, mouseSW); } else { cam.SmoothFollow(transform.position, mouseSW, mouseSW / 2, true, true); } } }