public void Init(Game game, PlotInfo info) { _game = game; _plotId = info.Id; _uiButtons.BuyPlotButton.GetComponentInChildren <Text>().text = "BUY " + info.Name + " PLOT (Price: " + S.CoinStr(info.PlotInitialCost) + ")"; AssignButtons(); var sellButtonText = _uiButtons.SellButton.GetComponentInChildren <Text>(); sellButtonText.text = "SELL " + info.Name; }
public void UpdateStorageView(PlotInfo plotInfo) { float xSize = plotInfo.WarehouseStorageRatio * _panelWidth; StorageRatio.sizeDelta = new Vector2(xSize, 250f); }