/// <summary> /// Main Constructor /// </summary> /// <param name="_sl">Reference to the Service Locator</param> /// <param name="_menus">Pass all loaded menus here</param> public Menu_Manager(IServiceLocator _sl, IDictionary <string, IMenu> _menus) { mServiceLocator = _sl; mInputManager = mServiceLocator.GetService <IInput_Manager>(); mInputManager.Sub_Esc(OnEsc); mMenus = _menus; }
/// <summary> /// Input Event subscribers /// </summary> public virtual void Subscribe() { mInputManager.Sub_Mouse(OnClick); mInputManager.Sub_Esc(OnEsc); }