public override void Load() { // this makes sure that the UI doesn't get opened on the server // the server can't see UI, can it? it's just a command prompt if (!Main.dedServ) { evasionUI = new EvasionUI(); evasionUI.Initialize(); evasionInterface = new UserInterface(); evasionInterface.SetState(evasionUI); } NinjaEvasion = RegisterHotKey("Ninja Evasion", "Q"); instance = this; thoriumLoaded = ModLoader.GetMod("ThoriumMod") != null; }
public override void Unload() { NinjaEvasion = null; instance = null; }