private void CreateGameObjectContextClick(GenericMenu menu, int contextClickedItemID)
 {
   menu.AddItem(EditorGUIUtility.TextContent("Copy"), false, new GenericMenu.MenuFunction(this.CopyGO));
   menu.AddItem(EditorGUIUtility.TextContent("Paste"), false, new GenericMenu.MenuFunction(this.PasteGO));
   menu.AddSeparator(string.Empty);
   if (!this.hasSearchFilter && this.m_TreeViewState.selectedIDs.Count == 1)
     menu.AddItem(EditorGUIUtility.TextContent("Rename"), false, new GenericMenu.MenuFunction(this.RenameGO));
   else
     menu.AddDisabledItem(EditorGUIUtility.TextContent("Rename"));
   menu.AddItem(EditorGUIUtility.TextContent("Duplicate"), false, new GenericMenu.MenuFunction(this.DuplicateGO));
   menu.AddItem(EditorGUIUtility.TextContent("Delete"), false, new GenericMenu.MenuFunction(this.DeleteGO));
   menu.AddSeparator(string.Empty);
   bool flag = false;
   if (this.m_TreeViewState.selectedIDs.Count == 1)
   {
     GameObjectTreeViewItem node = this.treeView.FindNode(this.m_TreeViewState.selectedIDs[0]) as GameObjectTreeViewItem;
     if (node != null)
     {
       // ISSUE: object of a compiler-generated type is created
       // ISSUE: variable of a compiler-generated type
       SceneHierarchyWindow.\u003CCreateGameObjectContextClick\u003Ec__AnonStorey42 clickCAnonStorey42 = new SceneHierarchyWindow.\u003CCreateGameObjectContextClick\u003Ec__AnonStorey42();
       // ISSUE: reference to a compiler-generated field
       clickCAnonStorey42.prefab = PrefabUtility.GetPrefabParent(node.objectPPTR);
       // ISSUE: reference to a compiler-generated field
       if (clickCAnonStorey42.prefab != (UnityEngine.Object) null)
       {
         // ISSUE: reference to a compiler-generated method
         menu.AddItem(EditorGUIUtility.TextContent("Select Prefab"), false, new GenericMenu.MenuFunction(clickCAnonStorey42.\u003C\u003Em__65));
         flag = true;
       }
     }
   }
   if (!flag)
     menu.AddDisabledItem(EditorGUIUtility.TextContent("Select Prefab"));
   menu.AddSeparator(string.Empty);
   this.AddCreateGameObjectItemsToMenu(menu, (UnityEngine.Object[]) ((IEnumerable<Transform>) Selection.transforms).Select<Transform, GameObject>((Func<Transform, GameObject>) (t => t.gameObject)).ToArray<GameObject>(), false, false, 0);
   menu.ShowAsContext();
 }
        private void CreateGameObjectContextClick(GenericMenu menu, int contextClickedItemID)
        {
            menu.AddItem(EditorGUIUtility.TextContent("Copy"), false, new GenericMenu.MenuFunction(this.CopyGO));
            menu.AddItem(EditorGUIUtility.TextContent("Paste"), false, new GenericMenu.MenuFunction(this.PasteGO));
            menu.AddSeparator(string.Empty);
            if (!this.hasSearchFilter && this.m_TreeViewState.selectedIDs.Count == 1)
            {
                menu.AddItem(EditorGUIUtility.TextContent("Rename"), false, new GenericMenu.MenuFunction(this.RenameGO));
            }
            else
            {
                menu.AddDisabledItem(EditorGUIUtility.TextContent("Rename"));
            }
            menu.AddItem(EditorGUIUtility.TextContent("Duplicate"), false, new GenericMenu.MenuFunction(this.DuplicateGO));
            menu.AddItem(EditorGUIUtility.TextContent("Delete"), false, new GenericMenu.MenuFunction(this.DeleteGO));
            menu.AddSeparator(string.Empty);
            bool flag = false;

            if (this.m_TreeViewState.selectedIDs.Count == 1)
            {
                GameObjectTreeViewItem node = this.treeView.FindNode(this.m_TreeViewState.selectedIDs[0]) as GameObjectTreeViewItem;
                if (node != null)
                {
                    // ISSUE: object of a compiler-generated type is created
                    // ISSUE: variable of a compiler-generated type
                    SceneHierarchyWindow.\u003CCreateGameObjectContextClick\u003Ec__AnonStorey42 clickCAnonStorey42 = new SceneHierarchyWindow.\u003CCreateGameObjectContextClick\u003Ec__AnonStorey42();
                    // ISSUE: reference to a compiler-generated field
                    clickCAnonStorey42.prefab = PrefabUtility.GetPrefabParent(node.objectPPTR);
                    // ISSUE: reference to a compiler-generated field
                    if (clickCAnonStorey42.prefab != (UnityEngine.Object)null)
                    {
                        // ISSUE: reference to a compiler-generated method
                        menu.AddItem(EditorGUIUtility.TextContent("Select Prefab"), false, new GenericMenu.MenuFunction(clickCAnonStorey42.\u003C\u003Em__65));
                        flag = true;
                    }
                }
            }
            if (!flag)
            {
                menu.AddDisabledItem(EditorGUIUtility.TextContent("Select Prefab"));
            }
            menu.AddSeparator(string.Empty);
            this.AddCreateGameObjectItemsToMenu(menu, (UnityEngine.Object[])((IEnumerable <Transform>)Selection.transforms).Select <Transform, GameObject>((Func <Transform, GameObject>)(t => t.gameObject)).ToArray <GameObject>(), false, false, 0);
            menu.ShowAsContext();
        }