Example #1
0
    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));
    }
Example #3
0
    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////////////////////////////
    }
Example #4
0
 public void RunConnect()
 {
     StartCoroutine(PupilTools.Connect(retry: true, retryDelay: 5f));
 }