Example #1
0
 /// <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;
 }
Example #2
0
 /// <summary>
 /// Input Event subscribers
 /// </summary>
 public virtual void Subscribe()
 {
     mInputManager.Sub_Mouse(OnClick);
     mInputManager.Sub_Esc(OnEsc);
 }