Exemple #1
0
 void Start()
 {
     lightComponent = GetComponent <Light>();
     serialHandler  = new SerialHandler();
     serialHandler.OnDataReceived += OnDataReceived;
     serialHandler.SendLog        += WriteLog;
     serialHandler.Init("Write serial port name", 115200);
     serialHandler.StartRead();
 }