示例#1
0
    public static void recalcID(string ID)
    {
        SmartUITextGroup s = null;

        children.TryGetValue(ID, out s);
        s.reCalc();
    }
示例#2
0
    public static void AddTextObj(string ID, GameObject withText)
    {
        SmartUITextGroup s = null;

        children.TryGetValue(ID, out s);
        if (withText.GetComponent <Text>() != null && s != null)
        {
            s.AddTextObj(withText);
        }
    }
示例#3
0
    public static void AddBeforeInit(string id, GameObject withText)
    {
        SmartUITextGroup s = null;

        children.TryGetValue(id, out s);
        if (withText.GetComponent <Text>() != null)
        {
            Text t = withText.GetComponent <Text>();
            s.TextGroup.Add(t);
            s.Sizes.Add(getSize(t));
        }
    }
示例#4
0
 // Use this for initialization
 void Start()
 {
     SmartUITextGroup.AddBeforeInit(TextGroupParentName, gameObject);
 }