//------------------------------------------------------------------------------------------------------- protected void onRegisterClick(GameObject button) { // 发送注册消息 CSRegister register = mSocketManager.createPacket <CSRegister>(); register.setAccount(mAccountEdit.getText()); register.setPassword(mPasswordEdit.getText()); register.setName(mNameEdit.getText()); register.mHead.mValue = 0; mSocketManager.sendMessage(register); }
//------------------------------------------------------------------------------------------------------- protected void onRegisterClick(GameObject button) { // 发送注册消息 CSRegister register = mSocketNetManager.createPacket(PACKET_TYPE.PT_CS_REGISTER) as CSRegister; register.setAccount(mAccountEdit.getText()); register.setPassword(mPasswordEdit.getText()); register.setName(mNameEdit.getText()); register.mHead.mValue = 0; mSocketNetManager.sendMessage(register); }