public void addChild(UShape shape) { if (this == shape) { Debug.LogError("addChild() can not make myself a child."); return; } children.Add(shape); }
public void removeChild(UShape shape) { children.Remove(shape); }