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);
 }
Exemple #2
0
        private byte[] TypeToHeader(Type t)
        {
            int num = m_protocolNum[t.ToString()];

            return(BitConvert.ToBytes((ushort)num));
        }