Beispiel #1
0
    public void RefreshGUI()
    {
        // refresh GUI
        string newText = informationFormat;

        newText = newText.Replace("/m", $"£{world.Money.ToString()}");
        newText = newText.Replace("/f", "N/A");
        newText = newText.Replace("/p", population.GetPopulations());
        newText = newText.Replace("/t", $"{world.DayProgress}/{world.DayLength}");
        newText = newText.Replace("/s", world.GetCurrentTool());
        //Debug.Log(newText);
        text.text = newText;
    }