private byte[] TypeToHeader(Type t) { try { int num = m_protocolNum[t.ToString()]; return(BitConvert.ToBytes((ushort)num)); } catch (Exception e) { Debug.LogError(e.Message + " " + e.StackTrace); } return(null); }
private byte[] TypeToHeader(Type t) { int num = m_protocolNum[t.ToString()]; return(BitConvert.ToBytes((ushort)num)); }