// Use this for initialization
 void Start()
 {
     //ardCon = new ArduinoConnector();
     //ardCon.Open();
     ardThread = new ArduinoThread();
     ardThread.StartThread();
     inputSim = new InputSimulator();
 }
 // Use this for initialization
 void Start()
 {
     collisionHandler = CollisionHandler.Instance;
     arduino          = ArduinoThread.Instance;
     dataRecorder     = DataRecorder.Instance;
     m_Collider       = GetComponent <Collider>();
     //arduino.StartThread();
     stopwatch = new Stopwatch();
 }
Exemplo n.º 3
0
    private void ClearInputs()
    {
        GameObject ctrl = GameObject.Find("ArduinoController");

        if (ctrl != null)
        {
            ArduinoThread thread = ctrl.GetComponent <ArduinoThread>();
            if (thread != null)
            {
                thread.ClearStreams();
            }
        }
    }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     arduinoValue = GetComponent <ArduinoThread> ();
 }