internal static void ActivateSelection()
{
if (Selection.activeTransform != null)
{
GameObject[] gameObjects = Selection.gameObjects;
Undo.RecordObjects(gameObjects, "Toggle Active State");
bool flag = !Selection.activeGameObject.activeSelf;
foreach (GameObject obj2 in gameObjects)
{
obj2.SetActive(flag);
}
}
}