public static BlockMovement AddBlockMovement(GameObject go, BoxCollision box, LayerMask layer) { var result = go.AddComponent <BlockMovement>(); result.blockBoxCollision = box; result.blockLayer = layer; return(result); }
private Rect bounds2Rect(Bounds bounds) { return(BoxCollision.Bound2Rect(bounds)); }