Beispiel #1
0
 public void SendSyncMessage(CommunicationObject communicationObject)
 {
     using (_syncClient = new SyncClient())
     {
         _syncClient.Connect();
         _syncClient.SendMessage(communicationObject);
     }
 }
    private IEnumerator ConnectRoutine()
    {
        Debug.Log("Waiting 1 second then initiating connection...");
        yield return(new WaitForSecondsRealtime(1.0f));

        Debug.Log("Initiating connection...");
        client.Connect(GetConnectionInfo());
        yield break;
    }
Beispiel #3
0
        public CommunicationObject RecieveSyncMessage()
        {
            CommunicationObject result;

            using (_syncClient = new SyncClient())
            {
                _syncClient.Connect();
                result = _syncClient.WaitForRecieveMessage();
            }

            return(result);
        }