// 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(); }
private void ClearInputs() { GameObject ctrl = GameObject.Find("ArduinoController"); if (ctrl != null) { ArduinoThread thread = ctrl.GetComponent <ArduinoThread>(); if (thread != null) { thread.ClearStreams(); } } }
// Use this for initialization void Start() { arduinoValue = GetComponent <ArduinoThread> (); }