public void RunConnect() { if (Settings.connection.isLocal) { RunServiceAtPath(); } StartCoroutine(PupilTools.Connect(retry: true, retryDelay: 5f)); }
public void RunConnect() { #if !UNITY_WSA if (PupilTools.Connection.isLocal) { RunServiceAtPath(); } #endif StartCoroutine(PupilTools.Connect(retry: true, retryDelay: 5f)); }
public static void AutoRunLayout() { PupilSettings pupilSettings = PupilTools.Settings; ////////////////////////////TOGGLE AUTO MODE//////////////////////////// PupilTools.Settings.connection.isAutorun = GUILayout.Toggle(PupilTools.Settings.connection.isAutorun, "Autorun Pupil Service", "Button"); if (!PupilTools.Settings.connection.isAutorun && Application.isPlaying) { GUILayout.BeginHorizontal(); if (GUILayout.Button("Start")) { Debug.Log("start button before connect"); PupilTools.Connect(); Debug.Log("start button after connect"); // if (PupilTools.Settings.connection.isLocal) // PupilTools.RunServiceAtPath (); // // // PupilDataReceiver.Instance.StartCoroutine (PupilDataReceiver.Instance.Connect (retry: true, retryDelay: 5f)); // if (PupilTools.Settings.connection.isLocal) { // // PupilTools.RunServiceAtPath (); // PupilDataReceiver.Instance.StartCoroutine (PupilDataReceiver.Instance.Connect (retry: true, retryDelay: 5f)); // // } else { // // PupilDataReceiver.Instance.StartCoroutine (PupilDataReceiver.Instance.Connect (retry: true, retryDelay: 5f)); // // } } if (GUILayout.Button("Stop")) { PupilTools.StopEyeProcesses(); } GUILayout.EndHorizontal(); } ////////////////////////////TOGGLE AUTO MODE//////////////////////////// }
public void RunConnect() { StartCoroutine(PupilTools.Connect(retry: true, retryDelay: 5f)); }