Exemplo n.º 1
0
 void Update()
 {
     if (connection != null)
     {
         connection.FlushReceiveData();
     }
 }
Exemplo n.º 2
0
    /*public void Broadcast(byte[] data) // packet manager?
     * {
     *  using (var iterator = clients.GetEnumerator())
     *  {
     *      while (iterator.MoveNext())
     *      {
     *          connection.Send(data, iterator.Current.Value.ipEndPoint);
     *      }
     *  }
     * }*/

    void Update() // y esto obviamente
    {
        // We flush the data in main thread
        if (connection != null)
        {
            connection.FlushReceiveData();
        }
    }
Exemplo n.º 3
0
 void Update()
 {
     // We flush the data in main thread
     if (connection != null)
     {
         connection.FlushReceiveData();
     }
 }
    private void Update()
    {
        if (connection != null)
        {
            connection.FlushReceiveData();
        }

        if (!isServer)
        {
            HandleConnectionHandshake();
        }
    }
Exemplo n.º 5
0
 void Update()
 {
     // We flush the data in main thread
     connection?.FlushReceiveData();
 }