Example #1
0
    public void ShowInfo()
    {
        Text[] infoFields = InfoPanel.GetComponentsInChildren <Text>();

        foreach (Text infoField in infoFields)
        {
            string value;
            savedFields.TryGetValue(infoField.name, out value);
            infoField.text = value;
        }
    }