public virtual void removeAllChildrenAndCleanup(bool cleanup=true){
if (_children != null) {
for (int i=_children.Count -1; i>=0; i--) {
CCNode c = _children [i];
if (_isRunning) {
c.onExitTransitionDidStart ();
c.onExit ();
}
if (cleanup)
c.cleanup ();
c.parent = null;
}
_children.Clear ();
}
}
void detachChild(CCNode child, bool cleanup)