Exemple #1
0
 void OnDestroy()
 {
     mCloudRecoBehaviour.UnregisterOnInitializedEventHandler(OnInitialized);
     mCloudRecoBehaviour.UnregisterOnInitErrorEventHandler(OnInitError);
     mCloudRecoBehaviour.UnregisterOnUpdateErrorEventHandler(OnUpdateError);
     mCloudRecoBehaviour.UnregisterOnStateChangedEventHandler(OnStateChanged);
     mCloudRecoBehaviour.UnregisterOnNewSearchResultEventHandler(OnNewSearchResult);
 }
 void OnDestroy()
 {
     if (mCloudRecoBehaviour)
     {
         mCloudRecoBehaviour.UnregisterOnInitErrorEventHandler(OnInitError);
         mCloudRecoBehaviour.UnregisterOnUpdateErrorEventHandler(OnUpdateError);
     }
 }