예제 #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;
        }
예제 #2
0
 public void ResetCamera()
 {
     MinVector = _originalMinVector;
     MaxVector = _originalMaxVector;
     CameraSystemDebug.PrintBounds(MinVector, MaxVector);
 }