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

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