Esempio n. 1
0
 private void MakeMovement(bool running)
 {
     try
     {
         var bytes = Requestor.CreateActionCmd(running);
         bytes = this.tcpClient.Query(bytes, x => Protocol.Verify(x), out bool valid);
         if (!valid)
         {
             throw new Exception();
         }
     }
     catch
     {
         throw new Exception("Error occurred when sending movement command!");
     }
 }