Exemplo n.º 1
0
    public void ReceiveVoiceData(byte[] packet, int o)
    {
        BoltEntity componentInParent = base.GetComponentInParent <BoltEntity>();

        if (componentInParent.IsAttached())
        {
            int    num   = Blit.ReadI32(packet, ref o);
            byte[] array = new byte[num];
            Blit.ReadBytes(packet, ref o, array, 0, num);
            this.ReceiveVoiceData_Unpacked(array, num);
        }
    }
Exemplo n.º 2
0
 public override void ReceiveVoiceData(byte[] packet, int o)
 {
     try
     {
         var length   = Blit.ReadI32(packet, ref o);
         var numArray = new byte[length];
         Blit.ReadBytes(packet, ref o, numArray, 0, length);
         ReceiveVoiceData_Unpacked(numArray, length);
     }
     catch (Exception e)
     {
         Logger.Exception("Failed to receive voice data!", e);
     }
 }