internal static void SetEditorDragMovement(bool dragging, GameObject[] objs)
{
foreach (Rigidbody2D rigidbodyd in m_LastDisabledRigidbody2D)
{
if (rigidbodyd != null)
{
rigidbodyd.SetDragBehaviour(false);
}
}
m_LastDisabledRigidbody2D.Clear();
if (dragging)
{
foreach (GameObject obj2 in objs)
{
Rigidbody2D[] componentsInChildren = obj2.GetComponentsInChildren<Rigidbody2D>(false);
foreach (Rigidbody2D rigidbodyd2 in componentsInChildren)
{
m_LastDisabledRigidbody2D.Add(rigidbodyd2);
rigidbodyd2.SetDragBehaviour(true);
}
}
}
}