public override void Unload() { foreach (var loadable in loadCache) { loadable.Unload(); } loadCache = null; if (!Main.dedServ) { Instance = null; AbilityKeys.Unload(); } }
public override void Unload() { if (!Main.dedServ) { RiftRecipes = null; StaminaUserInterface = null; CollectionUserInterface = null; OverlayUserInterface = null; InfusionUserInterface = null; CookingUserInterface = null; TextCardUserInterface = null; CodexUserInterface = null; CodexPopupUserInterface = null; LootUserInterface = null; ChatboxUserInterface = null; ExtraNPCInterface = null; RichTextInterface = null; stamina = null; collection = null; overlay = null; infusion = null; cooking = null; textcard = null; codex = null; codexpopup = null; lootUI = null; Chatbox = null; ExtraNPCState = null; RichText = null; Instance = null; AbilityKeys.Unload(); } UnhookIL(); Main.OnPreDraw -= TestLighting; }