Beispiel #1
0
    private void OnCodeStarConnect()
    {
        if (codeStarPort.options.Count > 0)
        {
            codeStarComm.device = new CommDevice(codeStarComm.foundDevices[codeStarPort.value]);
        }

        codeStarComm.Open();
    }
Beispiel #2
0
    private void OnCommSocketOKClick()
    {
        if (portList.options.Count > 0)
        {
            commSerial.device = new CommDevice(commSerial.foundDevices[portList.value]);
        }

        commSerial.Open();

        popupCanvas.gameObject.SetActive(false);
        settingCommSocket.gameObject.SetActive(false);
        messageCanvas.gameObject.SetActive(true);
        msgConnecting.gameObject.SetActive(true);
        msgConnectionFailed.gameObject.SetActive(false);
        msgLostConnection.gameObject.SetActive(false);
    }