def on_exit(self):
        self.is_running = False

        # pause actions
        self.pause()
        # pause callbacks
        self.pause_scheduler()

        # propagate
        for c in self.get_children():
            c.on_exit()
Called every time just before the node leaves the stage.
dataset/ETHPy150Open los-cocos/cocos/cocos/cocosnode.py/CocosNode.on_exit