Exemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            ISystemManager systemManager = (target as SystemManagerObserver)?.SystemManager;

            EditorGUILayout.BeginVertical(GUI.skin.box);

            EditorGUILayout.LabelField("System Manager Statistics", EditorStyles.boldLabel);

            GUILayout.Space(25.0f);

            EditorGUILayout.LabelField("Active Systems List:", EditorStyles.boldLabel);

            ISystemIterator iter = systemManager.GetSystemIterator();

            EditorGUILayout.BeginVertical(GUI.skin.box);

            EditorGUILayout.LabelField("Name\t\tType");

            while (iter.MoveNext())
            {
                _displaySystemInfo(iter.Get());
            }

            EditorGUILayout.EndVertical();

            EditorGUILayout.EndVertical();
        }