Last minute stuff

This commit is contained in:
Chris Midkiff
2018-11-30 15:04:39 -05:00
parent aafee8ff86
commit 50841fd69b
4 changed files with 35 additions and 7 deletions

View File

@@ -42,8 +42,8 @@ namespace Assets.Scripts
client.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
string ud = "userStudyId=" + name + "&userStudyData=" + data;
string response = client.UploadString(endpoint, ud);
UnityEngine.Debug.Log("Received Response: " + response);
client.UploadStringAsync(new Uri(endpoint), ud);
}
}
@@ -70,8 +70,7 @@ namespace Assets.Scripts
using (var client = new WebClient())
{
client.Headers[HttpRequestHeader.ContentType] = "application/json";
var resp = client.UploadString("http://home.superpichu.org:9009", body.ToString());
UnityEngine.Debug.Log("Recv: " + resp);
client.UploadStringAsync(new Uri("http://home.superpichu.org:9009"), body.ToString());
}
}
}

View File

@@ -85,7 +85,6 @@ public class ExperimentController : MonoBehaviour {
}
else if(trialIndex < participant.trials.Length)
{
// NEXT TRIAL SHIT
trialIndex++;
trialDotIndex = 0;
dataSet.SaveDataSet();