Exemple #1
0
    void LateUpdate()
    {
        //make the camera follow the player
        cameraBaseControl.UpdateCameraPosition();

#if UNITY_ANDROID
#else
        //rotate the camera
        cameraBaseControl.UpdateRotation(Input.GetAxis("Mouse X"), Input.GetAxis("Mouse Y"));
#endif
    }
 void MoveCamera()
 {
     //move camera
     cameraControl.UpdateCameraPosition();
 }