From cc02c62a2ddac7038b7af86fba66ce0c8e781bf7 Mon Sep 17 00:00:00 2001 From: Derya Aydede Date: Thu, 21 Jun 2018 17:33:14 -0700 Subject: [PATCH] fix #45 --- .../Assets/pupil_plugin/Scripts/Networking/PupilTools.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;