示例#1
0
    private void UpdateTooltip()
    {
        int    modifier = 0;
        int    aux      = 0;
        string text     = tooltipText + value.ToString() + '\n';

        if (type == CounterType.eco)
        {
            gameSystem.EmployeeCalculations(ref modifier, ref aux);
            gameSystem.TreeCalculations(ref modifier, ref aux);
        }
        else
        {
            gameSystem.EmployeeCalculations(ref aux, ref modifier);
            gameSystem.TreeCalculations(ref aux, ref modifier);
        }
        text        += "Fin de turno: " + (Mathf.Clamp(value + modifier, minValue, maxValue));
        tooltip.Text = text;
    }