24 Debug.Log(
"Press A or Z to execute some actions");
36 if (Input.GetKeyDown(KeyCode.A))
38 Debug.Log(
"Sending A");
42 if (Input.GetKeyDown(KeyCode.Z))
44 Debug.Log(
"Sending Z");
60 Debug.Log(
"Connection established");
62 Debug.Log(
"Connection attempt failed or disconnection detected");
64 Debug.Log(
"Message arrived: " + message);
SerialController serialController
const string SERIAL_DEVICE_CONNECTED
string ReadSerialMessage()
const string SERIAL_DEVICE_DISCONNECTED
void SendSerialMessage(string message)