Esempio n. 1
0
    void Start()
    {
        // config server
        c = new Communicator();

        // config communicator
        c.st = this;
        debugText = DebugText.GetComponent<UnityEngine.UI.Text>();

        c.initServer();

        // start calibration
        moveCursor(calibrationDefaults[calibrationPointSet]);

        // request vicon info from socket
        // raw message will be set to dtext variable
        tid = new Thread(new ThreadStart(c.GetInfo));
        tid.Start();

        // execute vicon client
        vicon = System.Diagnostics.Process.Start(Application.dataPath + "/ViconClient.exe");
        //Process vicon; // yama 0316
        //vicon = Process.Start("/ViconClient.exe"); //yama 0316

        //Baketsu.SetActive(false); // yama 0325 試験的にコメントアウト
    }