public void SetTarget(CameraTarget newTarget, bool teleport = false) { if (teleport) { targetCamera.transform.position = newTarget.GetWorldPosition().ToVector3(-10); targetCamera.orthographicSize = newTarget.GetCalculatedOrthoSize(); } CurrentTarget = newTarget; }
public void ImportValues(CameraTarget otherTarget) { this.worldPosition = otherTarget.GetWorldPosition(); this.ZoomScale = otherTarget.ZoomScale; }