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; }
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); }
public void resetCameraAttributes() { this.attrs = this.defaultAttrs; }
public void setCameraAttributes(CameraAttributes newCamAttrs) { this.attrs = newCamAttrs; }