Ejemplo n.º 1
0
 void SwapCameraByButton()
 {
     if (Input.GetButtonUp("Focus Attention") && CameraPlace == CameraPlacement.onPlayerDefault)
     {
         CameraPlace = CameraPlacement.onPlayerFocus;
     }
     else if (Input.GetButtonUp("Focus Attention") && CameraPlace == CameraPlacement.onPlayerFocus)
     {
         CameraPlace = CameraPlacement.onPlayerDefault;
     }
 }
        private void PlaceCamera()
        {
            string c_path = "";

            c_path = EditorUtility.OpenFilePanel("Load the camera placement file (.txt)", "", "txt");

            //If camera placement is not provided, exit the program
            if (c_path.Length == 0)
            {
                Application.Quit();
            }

            CameraPlacement.placeCameras(c_path, Instance.cam);
            Debug.Log("Camera is placed");
        }
Ejemplo n.º 3
0
 /*--------------------------------------------------------------------------------------------*/
 public void SetCameraPlacement(CameraPlacement pPlace)
 {
     vCameraAnim.Start(gameObject.transform.localPosition, vCameraMap[pPlace]);
     vCameraRotAnim.Start(gameObject.transform.localRotation, vCameraRotMap[pPlace]);
 }
 /*--------------------------------------------------------------------------------------------*/
 public void SetCameraPlacement(CameraPlacement pPlace)
 {
     vCameraAnim.Start(vEnviro.transform.localPosition, vCameraMap[pPlace]);
     vCameraRotAnim.Start(vEnviro.transform.localRotation, vCameraRotMap[pPlace]);
 }
Ejemplo n.º 5
0
 void PutCameraOnDefault()
 {
     CameraPlace          = CameraPlacement.onPlayerDefault;
     HoldCameraPreference = false;
 }
Ejemplo n.º 6
0
 void PutCameraOnShip()
 {
     CameraPlace          = CameraPlacement.onShipPlongee;
     HoldCameraPreference = true;
 }