public void SetControl(IMenuControl control)
 {
     m_Control = control;
     CreateMenuSections(m_Control.GetSections());
     UpdateGUI();
     m_Control.registerUpdateAction(UpdateGUI);
 }
 public void SetMenuControl(IMenuControl menuControl)
 {
     m_MenuControl = menuControl;
     CreateMenuSections(m_MenuControl.GetSections());
     updateControls();
     m_MenuControl.registerUpdateAction(updateControls);
 }