private void UnloadUI() { VeritasAbilityKey = null; Bandolier = null; SoulBank = null; VitalityAbilityKey = null; _interfaceVitality = null; vitalityBar = null; _interfaceShieldBroken = null; shieldBrokenUI = null; _interfaceInfectionBar = null; infectionBar = null; _interfaceNoteUI = null; noteUI = null; }
private void LoadUI() { vitalityBar = new VitalityBar(); vitalityBar.Activate(); _interfaceVitality = new UserInterface(); _interfaceVitality.SetState(vitalityBar); shieldBrokenUI = new ShieldBrokenUI(); shieldBrokenUI.Activate(); _interfaceShieldBroken = new UserInterface(); _interfaceShieldBroken.SetState(shieldBrokenUI); infectionBar = new InfectionBar(); infectionBar.Activate(); _interfaceInfectionBar = new UserInterface(); _interfaceInfectionBar.SetState(infectionBar); noteUI = new NoteUI(); noteUI.Activate(); _interfaceNoteUI = new UserInterface(); _interfaceNoteUI.SetState(noteUI); }