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