public void OnApplicationFocus(Boolean focusStatus) { if (!AGSClient.IsServiceReady()) { return; } if (!focusStatus) { AGSClient.release(); } }
public void OnApplicationFocus(Boolean focusStatus) { if (!AGSClient.ReinitializeOnFocus) { return; } if (focusStatus) { Debug.Log("init again"); //AGSClient.Init(true,true,true); InitializeGameCircle(); } else { Debug.Log("Release again"); AGSClient.release(); } }
/// <summary> /// Called by Unity when the application loses or regains focus. /// </summary> /// <param name="focusStatus"><c>true</c> if the application has regained focus. /// <c>false</c> if it has lost focus.</param> private void OnApplicationFocus(bool focusStatus) { if (!firstInitializedFinished || !AGSClient.ReinitializeOnFocus) { return; } if (focusStatus) { #if CLOUDONCE_DEBUG Debug.Log("AmazonCloudProvider.OnApplicationFocus(true) -> AGSClient.Init()"); #endif AGSClient.Init(); } else { #if CLOUDONCE_DEBUG Debug.Log("AmazonCloudProvider.OnApplicationFocus(false) -> AGSClient.release()"); #endif AGSClient.release(); } }