This version of Unity is unsupported.
Removed

BoxCollider2D.center

Switch to Manual
Obsolete BoxCollider2D.center has been deprecated. Use BoxCollider2D.offset instead.
Upgrade to offset
public Vector2 center;

Description

The center point of the collider in local space.