//<<<<<<< HEAD // public void send(int x, int y) { // // packet = new GamePacket(request_id); // packet.addInt32 (x); // packet.addInt32 (y); //======= public void send(string x, string y) { packet = new GamePacket(request_id); packet.addString(x); packet.addString(y); //>>>>>>> Dong }
public RequestLogin send(string username, string password) { Debug.Log("sending packet"); packet = new GamePacket(request_id); packet.addString(Constants.CLIENT_VERSION); packet.addString(username); packet.addString(password); return(this); }
public RequestLogin send(string username, string password) { Debug.Log ("sending packet"); packet = new GamePacket (request_id); packet.addString (Constants.CLIENT_VERSION); packet.addString (username); packet.addString (password); return this; }