Ejemplo n.º 1
0
 private void UpdateEfficiencyText()
 => efficiencyValueText.text = $"{manager.EfficiencyPercent(Services)}%";
Ejemplo n.º 2
0
        private void UpdateManagerEfficiency()
        {
            ILocalizationRepository localization = Services.ResourceService.Localization;

            if (manager != null)
            {
                if (manager.IsMaxEfficiency(Services))
                {
                    managerEfficiencyText.text = string.Format(localization.GetString("fmt_mgr_eff"), manager.EfficiencyPercent(Services));
                }
                else
                {
                    managerEfficiencyText.text = string.Format(localization.GetString("fmt_mgr_eff_drop"), manager.EfficiencyPercent(Services).ToString().Colored(ConsoleTextColor.red));
                }
            }
        }