private void processKeys(Move m) { currentSquare.X -= m.left; currentSquare.X += m.right; currentSquare.Y -= m.front; currentSquare.Y += m.down; }
private void processChannel() { Move reply = JsonConvert.DeserializeObject <Move>(client.Receive(Encoding.ASCII)); processKeys(reply); }