private static void Game_Load(EventArgs args) { HUD = LoadHUD(); Camps = Camp.GetCamps(_pos, _scale); foreach (var camp in Camps) { camp.Value.Draw(); camp.Value.Kill(0); } Game.OnGameProcessPacket += Game_OnGameProcessPacket; }
private static void Game_Load(EventArgs args) { HUD = LoadHUD(); Camps = Camp.GetCamps(_pos, _scale); foreach (var camp in Camps) { camp.Value.Draw(); camp.Value.Kill(0); } AppDomain.CurrentDomain.DomainUnload += CurrentDomain_DomainUnload; AppDomain.CurrentDomain.ProcessExit += CurrentDomain_DomainUnload; Game.OnGameProcessPacket += Game_OnGameProcessPacket; }