title: Change speed value depends on the mouse position from the center Unity3D
body: <p>I change (screen edge movement) the position of the camera on mouse movement to a specified boundary, I want to reduce the speed of the camera according to the mouse position from the center. make the speed = 0 if the mouse is on the edge, and speed =10 while the mouse is at the center with respect to the in between values.</p>