private IEnumerator generatedDummyPlayerSessionsForLoadTesting() { //PlayerSession.Instance.StartSPSession("eggcatcher"); yield return(new WaitForSecondsRealtime(1.0f)); Debug.Log("Posting player sessions Started"); try { for (int i = 0; i < SessionCount; i++) { Dictionary <string, dynamic> tempData = _T_GetDummyPlayerSessionDataJsonDic(requiredAction); FirebaseDBHandler._T_PostDummyPlayerSession(tempData); } } catch (Exception exp) { Debug.Log("Exception occured in Posting sessions : " + exp.Message); } yield return(new WaitForSecondsRealtime(1.0f)); Debug.Log("Posting player sessions Completed"); }
private async void SetProfilePicForPlayer(string profilePicUrlNew) { string onDeviceProfilePicPath = Application.persistentDataPath + "/" + profilePicUrlNew; playerProfilePicIMG = await FirebaseDBHandler.GetImageAsync(profilePicUrlNew, onDeviceProfilePicPath); }