private void GetTreeLocationFromCloud() { PlayFabClientAPI.GetUserData(new GetUserDataRequest() { }, result => { if (result.Data == null) { Debug.Log("No Data"); } else { playerDataSaver.SetTreeLocation(result.Data["Tree Location"].Value); Debug.Log("Tree Location" + playerDataSaver.GetTreeLocation()); if (playerDataSaver.GetTreeLocation() != "-") { SpawnTreeOnMap(playerDataSaver.GetTreeLocation()); } else { if (monstersKilled >= 50) { amountText.text = "1"; } } } }, error => Debug.Log(error.GenerateErrorReport())); }