Example #1
0
    public void Connect()
    {
        bool isConnected = ledsClient.ConnectResult(ipAddress, portNumber);

        if (isConnected)
        {
            serverMsg = "Connected.";
        }
        else
        {
            serverMsg = "Connection failed.";
            Debug.LogWarning(serverMsg);
        }
    }
Example #2
0
    public void Connect()
    {
        bool isConnected = xtionClient.ConnectResult(ipAddress, portNumber);

        if (isConnected)
        {
            serverMsg = "Connected.";
        }
        else
        {
            serverMsg = "Connection failed.";
            Debug.LogWarning(serverMsg);
        }
        if (receiverGO != null)
        {
            receiverGO.SendMessage(connectionCB, isConnected, SendMessageOptions.DontRequireReceiver);
        }
    }