def destroy(self):
     connectionManager.onConnected -= self.__onConnected
     g_playerEvents.onAccountShowGUI -= self.__onAccountShowGUI
     g_playerEvents.onAvatarBecomePlayer -= self.__onAvatarBecomePlayer
     ctrl = game_control.g_instance
     ctrl.aogas.onNotifyAccount -= self.__AOGAS_onNotifyAccount
     ctrl.gameSession.onClientNotify -= self.__gameSession_onClientNotify
     game_control.getEventsNotificationCtrl().onEventNotificationsChanged += self.__onReceiveEventNotification
     self.__clearLobbyListeners()
 def init(self):
     connectionManager.onConnected += self.__onConnected
     self.__expirationShown = False
     g_playerEvents.onAccountShowGUI += self.__onAccountShowGUI
     g_playerEvents.onAvatarBecomePlayer += self.__onAvatarBecomePlayer
     ctrl = game_control.g_instance
     ctrl.aogas.onNotifyAccount += self.__AOGAS_onNotifyAccount
     ctrl.gameSession.onClientNotify += self.__gameSession_onClientNotify
     game_control.getEventsNotificationCtrl().onEventNotificationsChanged += self.__onReceiveEventNotification
 def destroy(self):
     connectionManager.onConnected -= self.__onConnected
     g_playerEvents.onAccountShowGUI -= self.__onAccountShowGUI
     g_playerEvents.onAvatarBecomePlayer -= self.__onAvatarBecomePlayer
     ctrl = game_control.g_instance
     ctrl.aogas.onNotifyAccount -= self.__AOGAS_onNotifyAccount
     ctrl.gameSession.onClientNotify -= self.__gameSession_onClientNotify
     game_control.getEventsNotificationCtrl(
     ).onEventNotificationsChanged += self.__onReceiveEventNotification
     self.__clearLobbyListeners()
 def init(self):
     connectionManager.onConnected += self.__onConnected
     self.__expirationShown = False
     g_playerEvents.onAccountShowGUI += self.__onAccountShowGUI
     g_playerEvents.onAvatarBecomePlayer += self.__onAvatarBecomePlayer
     ctrl = game_control.g_instance
     ctrl.aogas.onNotifyAccount += self.__AOGAS_onNotifyAccount
     ctrl.gameSession.onClientNotify += self.__gameSession_onClientNotify
     game_control.getEventsNotificationCtrl(
     ).onEventNotificationsChanged += self.__onReceiveEventNotification