public static bool IsCollision(this CircleCollider2D circle, BoxCollider2D box) { Rect rt = new Rect(box.UIPos(), box.size); rt.MovePivot(-Vector2.one * 0.5f); return(IsCollision(circle.UIPos(), circle.radius, rt)); }