void OnDestroy() { mCloudRecoBehaviour.UnregisterOnInitializedEventHandler(OnInitialized); mCloudRecoBehaviour.UnregisterOnInitErrorEventHandler(OnInitError); mCloudRecoBehaviour.UnregisterOnUpdateErrorEventHandler(OnUpdateError); mCloudRecoBehaviour.UnregisterOnStateChangedEventHandler(OnStateChanged); mCloudRecoBehaviour.UnregisterOnNewSearchResultEventHandler(OnNewSearchResult); }