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