Beispiel #1
0
    void FixedUpdate()
    {
        main_text.text = GlobalText.text;

        money_text.text = "$" + GlobalText.GetNiceMoney(MainValues.money);

        if (!MainValues.onRightSide)
        {
            citizen_text.text  = "Citizens\n";
            citizen_text.text += "Wealth: $" + GlobalText.GetNiceMoney(MainValues.citizen_wealth) + "\n";
            citizen_text.text += "Happiness: " + GlobalText.GetNicePercent(MainValues.GetCitizenPercent()) + "%\n";
            citizen_text.text += "Smarts: " + Mathf.Round(MainValues.citizen_smarts);
        }

        if (MainValues.onRightSide)
        {
            gov_text.text  = "Government\n";
            gov_text.text += "Wealth: $" + GlobalText.GetNiceMoney(MainValues.government_wealth) + "\n";
            gov_text.text += "Happiness: " + GlobalText.GetNicePercent(MainValues.GetGovernmentPercent()) + "%\n";
            gov_text.text += "Foreign Threat: ";
            gov_text.text += GlobalText.GetNicePercent(MainValues.GetOutsideAgitation()) + "%";
        }
    }