public override void Unload() { BuffCache.Unload(); UI = null; UIState?.Deactivate(); UIState = null; Instance = null; }
public override void Load() { AutoBuild.Load(); TestEnchantGenerator.Build(); Main.instance.Exiting += ForceUnload; BuffCache.Load(this); if (!Main.dedServ) { UI = new UserInterface(); UIState = new AltarUI(); //UIState.Activate(); } sw.Stop(); Logger.Debug($"Initializing took {sw.Elapsed.TotalMilliseconds}ms"); }
void Start() { altarUI = GameManager.gm.Canvas.GetComponent <UIInfo>().altarPanel.GetComponent <AltarUI>(); shopUI = GameManager.gm.Canvas.GetComponent <UIInfo>().shopPanel.GetComponent <ShopUI>(); }