public void SendToServer(NetMsg msg) { byte[] buffer = MsgSerializer.SerializeObject(msg, MSG_BYTE_SIZE); NetworkTransport.Send(_hostId, _connectionId, _reliableChannel, buffer, MSG_BYTE_SIZE, out _error); if (_error != 0) { Debug.Log((NetworkError)_error); } }