public void UpdateStats(int cashBoxIndex, int productsDone, int totalBuyers, int maxQueue, int workTime, int sleepTime, float buyersPerMinute, float efficiencyRate) { FindShopIfRequired(); Title.text = TitleText.GetText(shop.changedLanguage) + cashBoxIndex; ProductsDone.text = ProductsDoneText.GetText(shop.changedLanguage) + productsDone.ToString(); TotalBuyers.text = TotalBuyersText.GetText(shop.changedLanguage) + totalBuyers.ToString(); MaxQueue.text = MaxQueueText.GetText(shop.changedLanguage) + maxQueue.ToString(); WorkTime.text = WorkTimeText.GetText(shop.changedLanguage) + shop.PrintTime(workTime); SleepTime.text = SleepTimeText.GetText(shop.changedLanguage) + shop.PrintTime(sleepTime); BuyersPerMinute.text = BuyersPerMinuteText.GetText(shop.changedLanguage) + buyersPerMinute.ToString(); EfficiencyRate.text = EfficiencyRateText.GetText(shop.changedLanguage) + efficiencyRate.ToString() + "%"; }
// public string GetLocalization(LocalizableText text) { return(text.GetText(changedLanguage)); }