protected override void OnActivate() { MenuManager.Init(); DelayAction.Add(100, () => { Core.Init(); TempestManager.Fresh(); IllusionManager.GetCreepManager(); NecronomiconManager.GetNecronomiconManager(); InputBlocker.GetInputBlocker().Load(); if (OrderManager.CurrentOrder == null) { Console.WriteLine(""); } if (MenuManager.IsInfoPanelEnabled) { InfoPanel.GetInfoPanel().Load(); } }); }
private static void Main() { Events.OnLoad += (sender, args) => { if (ObjectManager.LocalHero.HeroId != HeroId.npc_dota_hero_arc_warden) { return; } MenuManager.Init(); DelayAction.Add(100, () => { Core.Init(); TempestManager.Fresh(); IllusionManager.GetCreepManager(); NecronomiconManager.GetNecronomiconManager(); InputBlocker.GetInputBlocker().Load(); if (MenuManager.IsInfoPanelEnabled) { InfoPanel.GetInfoPanel().Load(); } }); }; }
public static InputBlocker GetInputBlocker() { return(_inputBlocker ?? (_inputBlocker = new InputBlocker())); }