void OnEnable()
        {
            m_DebugMenu            = DebugMenuManager.instance;
            DebugItem.OnItemDirty += DebugItem_OnDirty;

            if (m_DebugMenuState == null)
            {
                m_DebugMenuState           = ScriptableObject.CreateInstance <DebugMenuState>();
                m_DebugMenuState.hideFlags = HideFlags.DontSave;
            }
        }
 public void SetDebugMenuState(DebugMenuState state)
 {
     m_DebugMenuStateDirty = true;
     m_DebugMenuState      = state;
 }