public GenericSize(Component _e) { GenericValues val = new GenericValues(_e); _ele = _e; componentValues = val.componentSize; branchValues = val.branchSize; parent = val.parent; ele = val.ele; SetWidth(); SetHeight(); SetLimits(); }
public GenericPosition(Component _e, Size eSize) { _ele = _e; GenericValues val = new GenericValues(_ele); componentValues = val.componentPosition; branchValues = val.branchPosition; parent = val.parent; ele = val.ele; index = _ele.transform.GetSiblingIndex(); brotherCount = _ele.transform.parent.childCount; SetX(eSize); SetY(eSize); SetPivot(eSize); setXStick(eSize); }