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(); }
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(); }