public static void SetCamMode(float zOffset)
 {
     if (GM.cockPitModeOn)
     {
         GameCamera cam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <GameCamera>();
         cam.camMode = GameCamera.CameraMode.CockPit;
         Vector3 camAngles = cam.transform.rotation.eulerAngles;
         cam.transform.rotation = Quaternion.Euler(60, camAngles.y, camAngles.z);
         cam.transform.position = new Vector3(cam.transform.position.x, cam.transform.position.y, cam.transform.position.z + zOffset);
         cam.CamModeInit();
     }
 }