- def poll_loaded(self):
- self.key.callback_action_ready(self,
- self.is_loaded(allow_substates=True))
+ def on_enter_destroyed(self):
+ if 'music' in self.arguments:
+ self.arguments['music'].unsubscribe_state_change(
+ self.callback_music_state)
+
+ def notify_state_change(self, *args, **kwargs):
+ self.key.callback_action_state_changed()