

def on_exit(self):
    '\n        Called every time just before the node leaves the stage.\n\n        Scheduled calls and worker actions are suspended, that is, they will not\n        be called until an :meth:`on_enter` event happens.\n\n        Most of the time you will want to ``pop_handlers()`` for all explicit\n        ``push_handlers()`` found in meth:`on_enter`.\n\n        Consider to release here openGL resources created by this node, like\n        compiled vertex lists.\n        '
    self.is_running = False
    self.pause()
    self.pause_scheduler()
    for c in self.get_children():
        c.on_exit()

dataset/ETHPy150Open los-cocos/cocos/cocos/cocosnode.py CocosNode.on_exit/original