public static void recalcID(string ID) { SmartUITextGroup s = null; children.TryGetValue(ID, out s); s.reCalc(); }
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); } }
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)); } }
// Use this for initialization void Start() { SmartUITextGroup.AddBeforeInit(TextGroupParentName, gameObject); }