예제 #1
0
 void                        Start()
 {
     this.state                   = CameraState.Automatic;
     this.oldFollow               = this.follow.position;
     this.oldRotation             = this.transform.rotation;
     this.transform.position      = this.follow.position + Vector3.one; // set position
     this.currentHeightAttributes = this.defaultHeightAttributes;
     this.attrs                   = this.defaultAttrs;
 }
예제 #2
0
        public void Init(CinemachineVirtualCamera camera, VesselType vesselType)
        {
            this.virtualCamera = camera;
            PlayerSettings playerSettings = GameManager.Instance.gameSettings.playerSettings;

            attributes = playerSettings.cameraAttributes.Where(x => x.type == vesselType).First();

            CameraExternalShake externalShaker = this.GetComponent <CameraExternalShake>();

            externalShaker.Init(camera);
        }
예제 #3
0
 public void                 resetCameraAttributes()
 {
     this.attrs = this.defaultAttrs;
 }
예제 #4
0
 public void                 setCameraAttributes(CameraAttributes newCamAttrs)
 {
     this.attrs = newCamAttrs;
 }