Exemplo n.º 1
0
 public override void Unload()
 {
     BuffCache.Unload();
     UI = null;
     UIState?.Deactivate();
     UIState  = null;
     Instance = null;
 }
Exemplo n.º 2
0
        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");
        }
Exemplo n.º 3
0
 void Start()
 {
     altarUI = GameManager.gm.Canvas.GetComponent <UIInfo>().altarPanel.GetComponent <AltarUI>();
     shopUI  = GameManager.gm.Canvas.GetComponent <UIInfo>().shopPanel.GetComponent <ShopUI>();
 }