Skip to content
Permalink
Browse files

experimental delay

  • Loading branch information
JumpAttacker committed Oct 13, 2019
1 parent 654b705 commit d0fb139ec394738982607ca2e5b5ca9c660468dd
Showing with 4 additions and 3 deletions.
  1. +4 −3 ArcNew/Core.cs
@@ -44,7 +44,8 @@ public static void Init()
MainHero = new MainHero();
MainHero.Init();
AutoMidas.GetNewInstance(MainHero);
DelayAction.Add(100,() => GameDispatcher.OnUpdate += GameDispatcherOnOnUpdate);
UpdateManager.BeginInvoke(() => { UpdateManager.Subscribe(OnUpdate, 250); },100);
// DelayAction.Add(100,() => GameDispatcher.OnUpdate += GameDispatcherOnOnUpdate);

UpdateManager.Subscribe(TempestUpdater,500);
var manager = Program.GetContext.Inventory;
@@ -79,7 +80,7 @@ public static void Init()
}
};
}

private static void TempestUpdater()
{
if (TempestManager.Tempest != null && TempestManager.Tempest.IsValid)
@@ -99,7 +100,7 @@ private static void TempestUpdater()
}
}

public static void GameDispatcherOnOnUpdate(EventArgs args)
public static void OnUpdate()
{
if (!MenuManager.IsEnable)
return;

0 comments on commit d0fb139

Please sign in to comment.
You can’t perform that action at this time.