예제 #1
0
        private void SwitchMenuToSell()
        {
            InputEvent.Instance.Event_SwitchShop.RemoveListener(SwitchMenuToSell);
            InputEvent.Instance.Event_SwitchShop.AddListener(SwitchMenuToBuy);

            uinav_tabSellOrBuy.SetValue("Buy", InputEvent.ACTION_SWITCH_SHOP_MENU);

            Left.Buy.Deactivate();

            TradeType = TradeType.Sell;
            Left.Sell.Activate();

            OnSwitchedMenuToSell.Invoke();
        }
예제 #2
0
        public void Add(ref UI_Navigator nav, string text, string letter)
        {
            if (navigatorPool.Count == 0)
            {
                navigatorPool.Push(Instantiate(prefab, poolTransform));
            }

            nav = navigatorPool.Pop();
            nav.SetValue(text, letter);

            nav.transform.SetParent(transform);
            Reposition();
        }