Beispiel #1
0
        //------------------------------------------------------
        // GUI
        //------------------------------------------------------

        public override void OnGUI()
        {
            foreach (var item in m_itemList)
            {
                var dir = item as DebugMenuDirectory;
                if (dir != null)
                {
                    if (GUILayout.Button(item.name))
                    {
                        DebugMenuManager.SetCurrent(dir);
                    }
                    continue;
                }

                item.OnGUI();
            }
        }
Beispiel #2
0
        //------------------------------------------------------
        // lifetime
        //------------------------------------------------------

        public DebugMenuItem(string path)
        {
            name        = Path.GetFileName(path);
            m_directory = DebugMenuManager.GetDirectory(Path.GetDirectoryName(path));
            m_directory.AddItem(this);
        }
Beispiel #3
0
        //------------------------------------------------------
        // unity system function
        //------------------------------------------------------

        void OnGUI()
        {
            DebugMenuManager.OnGUI(Close);
        }