Exemplo n.º 1
0
        public void Start()
        {
            _player          = transform.parent.gameObject.GetComponentInChildren <Player>();
            _parentTransform = GetComponentInParent <Transform>();

            SetCameraFromBackdrop();

            if (MinVector.Equals(new Vector2()) && MaxVector.Equals(new Vector2()))
            {
                SetDefaults();
            }

            CameraSystemDebug.PrintBounds(MinVector, MaxVector);

            _originalMinVector = MinVector;
            _originalMaxVector = MaxVector;
        }
Exemplo n.º 2
0
 public void ResetCamera()
 {
     MinVector = _originalMinVector;
     MaxVector = _originalMaxVector;
     CameraSystemDebug.PrintBounds(MinVector, MaxVector);
 }