Exemplo n.º 1
0
 void LateUpdate()
 {
     if (cam != null)
     {
         cam.SmoothFollow(startLook + movement, 20, 3, true, true);
     }
 }
Exemplo n.º 2
0
 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);
         }
     }
 }