public override void Load() { instance = this; skill1 = RegisterHotKey("Skill 1", "F2"); skill2 = RegisterHotKey("Skill 2", "F3"); skill3 = RegisterHotKey("Skill 3", "F4"); skill4 = RegisterHotKey("Skill 4", "F5"); skill5 = RegisterHotKey("Skill 5", "F6"); skill6 = RegisterHotKey("Skill 6", "F7"); skill7 = RegisterHotKey("Skill 7", "F8"); skill8 = RegisterHotKey("Skill 8", "F9"); skillsList = new SkillsList(); if (!Main.dedServ) { mutationInterface = new UserInterface(); geneInterface = new UserInterface(); mutationBar = new MutationBar(); mutationBar.Activate(); mutationInterface.SetState(mutationBar); geneUI = new GeneUI(); geneUI.Activate(); } am = new AttributeManager(); }
public override void Unload() { am = null; mutationBar = null; geneUI = null; skillsList = null; skill1 = null; skill2 = null; skill3 = null; skill4 = null; skill5 = null; skill6 = null; skill7 = null; skill8 = null; }