Esempio n. 1
0
        public void SetTarget(CameraTarget newTarget, bool teleport = false)
        {
            if (teleport)
            {
                targetCamera.transform.position = newTarget.GetWorldPosition().ToVector3(-10);
                targetCamera.orthographicSize   = newTarget.GetCalculatedOrthoSize();
            }

            CurrentTarget = newTarget;
        }
Esempio n. 2
0
 public void ImportValues(CameraTarget otherTarget)
 {
     this.worldPosition = otherTarget.GetWorldPosition();
     this.ZoomScale     = otherTarget.ZoomScale;
 }