protected override void destroy() { if (parent != null) { parent.removeChild(this); } base.destroy(); }