diff --git a/unity_pupil_plugin_vr/Assets/pupil_plugin/Scripts/Networking/PupilTools.cs b/unity_pupil_plugin_vr/Assets/pupil_plugin/Scripts/Networking/PupilTools.cs index 9de21c4c..f3123ab0 100644 --- a/unity_pupil_plugin_vr/Assets/pupil_plugin/Scripts/Networking/PupilTools.cs +++ b/unity_pupil_plugin_vr/Assets/pupil_plugin/Scripts/Networking/PupilTools.cs @@ -2,7 +2,8 @@ using System.Collections.Generic; using System.IO; using System.Diagnostics; -using UnityEngine; +using UnityEngine; + public class PupilTools : MonoBehaviour { @@ -229,7 +230,7 @@ public static Vector3 VectorFromDictionary(Dictionary source, str public static float FloatFromDictionary(Dictionary source, string key) { object value_o; - source.TryGetValue ("confidence", out value_o); + source.TryGetValue (key, out value_o); return (float)(double)value_o; } private static object IDo;