public void removeChild(DrawableBase obj) { DrawableList[obj.layer].Remove(obj); }
void setAutoRemoveFunc() { DrawableBase.setAutoRemoveFunc(removeChild); }
public void addChild(DrawableBase obj) { if (DrawableList.ContainsKey(obj.layer) == false) { DrawableList.Add(obj.layer, new List<DrawableBase>()); } DrawableList[obj.layer].Add(obj); }
void setAutoAddFunc() { DrawableBase.setAutoAddFunc(addChild); }