Add support for OnShow and OnHide event handlers to scene node scripts.