setup handler_setup set_process(true) handler_setup(user) attack hander = res.instance() add_child(handler) MB.subscribe("attacked", handler) user.connect("hit", self, "handle attack result", [0, user]) user.connect("hit", ai, "hit") handler teardown disconnect signals handler.queue_free