private void LoginCallback(LoginResult result)
        {
            PlayFabId = result.PlayFabId;
            var testContext = (UUnitTestContext)result.CustomData;

            testContext.True(clientInstance.IsClientLoggedIn(), "User login failed");
            testContext.True(clientInstance.GetAuthenticationContext().IsEntityLoggedIn(), "Entity login failed");
            testContext.EndTest(UUnitFinishState.PASSED, clientSettings.TitleId + ", " + result.PlayFabId);
        }
        private void OnCloudScriptSubmit(ExecuteCloudScriptResult result)
        {
            if (postResultsToCloudscript && result != null)
            {
                Debug.Log("Results posted to Cloud Script successfully: " + PlayFabSettings.BuildIdentifier + ", " + clientInstance.GetAuthenticationContext().PlayFabId);
                if (result.Logs != null)
                {
                    foreach (var eachLog in result.Logs)
                    {
                        Debug.Log("Cloud Log: " + eachLog.Message);
                    }
                }
            }

            if (autoQuit && !Application.isEditor)
            {
                Application.Quit();
            }
            else if (!suite.AllTestsPassed())
            {
                throw new Exception("Results were not posted to Cloud Script: " + PlayFabSettings.BuildIdentifier);
            }
        }