public override void Unload() { bloodLevel = null; NoteUI = null; AetherUI = null; bloodLevelUI = notesUI = aetherUI = null; UseBlood = null; TynCoinID = tng = alc = default; }
public override void Load() { bloodLevel = new BloodUI(); bloodLevel.Initialize(); bloodLevelUI = new UserInterface(); bloodLevelUI.SetState(bloodLevel); NoteUI = new NoteUI(); NoteUI.Initialize(); notesUI = new UserInterface(); notesUI.SetState(NoteUI); AetherUI = new AetherUI(); AetherUI.Initialize(); aetherUI = new UserInterface(); aetherUI.SetState(AetherUI); UseBlood = RegisterHotKey("Use Blood Magic", "G"); TynCoinID = CustomCurrencyManager.RegisterCurrency(new TynCoin(ModContent.ItemType <Items.TynCoin>(), 999L)); tng = GetSoundSlot(SoundType.Music, "Sounds/Music/TouchNGo"); alc = GetSoundSlot(SoundType.Music, "Sounds/Music/Alchemy"); }