コード例 #1
0
 // Update is called once per frame
 void Update()
 {
     StartCoroutine(
         COMunicator.COMunicate
         (
             "SPEEDS",
             (string s) => GetComponent <TextMesh>().text = s
         )
         );
 }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     Debug.unityLogger.Log("STARTING");
     StartCoroutine(
         COMunicator.COMunicate
         (
             "PING",
             (string s) => Debug.unityLogger.Log(s),
             () => Debug.unityLogger.LogError("ERROR", "Timed out!")
         )
         );
 }