void GUIInspectorView()
        {
            EditorGUILayout.BeginVertical(EditorStyles.helpBox, GUILayout.Width(m_toolbarWidth));
            GUILayout.Label("Inspector View", EditorStyles.boldLabel);

            m_editorScroll = EditorGUILayout.BeginScrollView(m_editorScroll, GUILayout.Width(m_toolbarWidth));
            var previoustarget = m_target;

            m_target = (GameObject)EditorGUILayout.ObjectField(m_target, typeof(GameObject), false);

            // m_target = (RuntimeAnimatorController)EditorGUILayout.ObjectField(m_target, typeof(RuntimeAnimatorController), false);
            if (previoustarget != m_target)
            {
                m_hitboxManager  = null;
                m_Inspector      = null;
                m_SpriteRenderer = null;
                InitHitBoxManager();
                Repaint();
                return;
            }

            GUIRenderInspector();

            EditorGUILayout.EndScrollView();
            EditorGUILayout.EndVertical();
        }
        void RenderInspector(HitBoxManagerInspector inspector)
        {
            inspector.showColliders  = m_showColliders;
            inspector.showAnimation  = m_showAnimation;
            inspector.showAttackData = m_showAttackData;
            inspector.showFrameData  = m_showFrameData;
            inspector.showMove       = m_showMove;
            inspector.showEvents     = m_showEvents;

            inspector.OnInspectorGUI();

            m_showColliders  = inspector.showColliders;
            m_showAnimation  = inspector.showAnimation;
            m_showAttackData = inspector.showAttackData;
            m_showFrameData  = inspector.showFrameData;
            m_showMove       = inspector.showMove;
            m_showEvents     = inspector.showEvents;
        }
        void InitHitBoxManager()
        {
            m_hitboxManager = m_target == null ? null : m_hitboxManager = m_target.GetComponentInChildren <HitboxManager>();

            if (m_hitboxManager == null)
            {
                m_SpriteRenderer = null;
                m_Inspector      = null;
                return;
            }

            // m_character = m_target.GetComponentInChildren<ICharacter>();
            if (m_SpriteRenderer == null)
            {
                m_SpriteRenderer = m_target.GetComponentInChildren <SpriteRenderer>();
            }
            if (m_Inspector == null)
            {
                m_Inspector = (HitBoxManagerInspector)Editor.CreateEditor(m_hitboxManager);
                m_target.GetComponentInChildren <SpriteRenderer>();
            }
        }