Пример #1
0
    public override void LoadDataInternal()
    {
        Stylesheet stylesheet = MainData.CurrentStylesheet;
        Text       text       = gameObject.GetComponent <Text>();

        if (text == null)
        {
            return;
        }

        text.fontSize = stylesheet.GetFontSize(fontSize);
        text.color    = stylesheet.GetTextColor(textColor);
    }