public void OnInit() { Init = delegate { }; AbilityDatabase.Setup(); AddonMenus.Setup(); StealthPrediction.Setup(); HideNames.Setup(); ActiveSkills.Setup(); ObjectTracker.Setup(); MenuEvents.Setup(); DebugHelper.Setup(); BuffTracker.Setup(); Game.OnPreUpdate += Game_OnPreUpdate; DelayAction(Init.Invoke, 0.5f); }
public void OnUnload() { Console.WriteLine("Unload Common Started"); Init = null; AbilityDatabase.Unload(); AddonMenus.Unload(); StealthPrediction.Unload(); HideNames.Unload(); ActiveSkills.Unload(); ObjectTracker.Unload(); MenuEvents.Unload(); DebugHelper.Unload(); BuffTracker.Unload(); Game.OnPreUpdate -= Game_OnPreUpdate; Console.WriteLine("Unload Common Ended"); }