Exemple #1
0
 void Update()
 {
     if (connection != null)
     {
         connection.FlushReceiveData();
     }
 }
Exemple #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();
        }
    }
Exemple #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();
        }
    }
Exemple #5
0
 void Update()
 {
     // We flush the data in main thread
     connection?.FlushReceiveData();
 }