public static void ResetClient() { try { client.Reset(); } catch (Exception e) { Logger.Debug("Error deleting client manifest during reset: {1}", e.Message); } }
void LateUpdate() { if (didAbort) { return; } didAbort = true; client.Reset(); SkillzCrossPlatform.AbortMatch(); }
void LateUpdate() { if (didSubmit) { return; } didSubmit = true; client.Reset(); if (UserData.Instance != null) { UserData.Instance.IsGameOver = false; UserData.Instance.IsGameStarted = false; UserData.Instance.IsUnityAppPaused = false; } Debug.Log("Submitting score: " + client.Score); SkillzCrossPlatform.ReportFinalScore(client.Score); }
void OnApplicationQuit() { Debug.Log("Disposing SyncClient on app quit..."); client.Reset(); }