// Start is called before the first frame update
        void Start()
        {
            _cameraTransform = playerCamera.transform;
            _smoothCamera    = GetComponent <SmoothCamera>();

            _cameraTransform.rotation = Quaternion.AngleAxis(90, Vector3.right);
            _cameraTransform.position = new Vector3(0, Mathf.Lerp(minZoom, maxZoom, startZoom), 0);
        }
Example #2
0
 void Start()
 {
     _playerController = GetComponent <PlayerController>();
     _smoothCamera     = GetComponent <SmoothCamera>();
 }