public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            MonoBehaviour component = (MonoBehaviour)target;

            // Get its dependencies on other components on the game object
            foreach (var requiredType in DataComponentHelper.GetRequieredTypes(component.GetType()))
            {
                DataComponentGUIHelper.DrawComponent((MonoBehaviour)component.GetComponent(requiredType));
            }
        }
        private void OnGUI()
        {
            if (Selection.activeGameObject == null)
            {
                return;
            }

            foreach (MonoBehaviour component in Selection.activeGameObject.GetComponents(typeof(MonoBehaviour)))
            {
                if (typeof(IConvertGameObjectToEntity).IsAssignableFrom(component.GetType()))
                {
                    DataComponentGUIHelper.DrawComponent(component);
                }
            }
        }