/// <summary> /// MonoBehaviour OnDestroy /// </summary> private void OnDestroy() { var transport = PluginManager.GetPlugin <ITransportPlugin>(PluginContract.PlayFab_Transport); if (transport.IsInitialized) { transport.OnDestroy(); } #if ENABLE_PLAYFABPLAYSTREAM_API && ENABLE_PLAYFABSERVER_API if (_internalSignalR != null) { _internalSignalR.Stop(); } #endif if (_logger != null) { _logger.OnDestroy(); } #if !DISABLE_PLAYFABENTITY_API && !DISABLE_PLAYFABCLIENT_API if ((screenTimeTracker != null) && !PlayFabSettings.DisableFocusTimeCollection) { screenTimeTracker.OnDestroy(); } #endif }
/// <summary> /// MonoBehaviour OnDestroy /// </summary> public void OnDestroy() { if (_internalHttp != null) { _internalHttp.OnDestroy(); } #if ENABLE_PLAYFABPLAYSTREAM_API && ENABLE_PLAYFABSERVER_API if (_internalSignalR != null) { _internalSignalR.Stop(); } #endif if (_logger != null) { _logger.OnDestroy(); } }
/// <summary> /// MonoBehaviour OnDestroy /// </summary> private void OnDestroy() { var transport = PluginManager.GetPlugin <ITransportPlugin>(PluginContract.PlayFab_Transport); if (transport.IsInitialized) { transport.OnDestroy(); } if (_logger != null) { _logger.OnDestroy(); } #if !DISABLE_PLAYFABENTITY_API && !DISABLE_PLAYFABCLIENT_API if (screenTimeTracker != null && !PlayFabSettings.DisableFocusTimeCollection) { screenTimeTracker.OnDestroy(); } #endif }
/// <summary> /// MonoBehaviour OnDestroy /// </summary> private void OnDestroy() { if (_internalHttp != null) { _internalHttp.OnDestroy(); } #if ENABLE_PLAYFABPLAYSTREAM_API && ENABLE_PLAYFABSERVER_API if (_internalSignalR != null) { _internalSignalR.Stop(); } #endif if (_logger != null) { _logger.OnDestroy(); } #if ENABLE_PLAYFABENTITY_API && !DISABLE_PLAYFABCLIENT_API if ((screenTimeTracker != null) && (!PlayFabSettings.DisableFocusTimeCollection != false)) { screenTimeTracker.OnDestroy(); } #endif }
/// <summary> /// MonoBehaviour OnDestroy /// </summary> private void OnDestroy() { if (_internalHttp != null) { _internalHttp.OnDestroy(); } #if ENABLE_PLAYFABPLAYSTREAM_API && ENABLE_PLAYFABSERVER_API if (_internalSignalR != null) { _internalSignalR.Stop(); } #endif if (_logger != null) { _logger.OnDestroy(); } #if ENABLE_PLAYFABENTITY_API if ((screenTimeTracker != null) && (shouldCollectScreenTime != false)) { screenTimeTracker.OnDestroy(); } #endif }