void doLogin() { SFRequestMsgUnitLogin req = new SFRequestMsgUnitLogin(); req.loginOrOut = 1; SFNetworkManager.instance.sendMessage(req); }
public void onLogout(SFEvent e) { SFRequestMsgUnitLogin req = new SFRequestMsgUnitLogin(); req.loginOrOut = 2; SFNetworkManager.instance.sendMessage(req); m_view.btnLogout.interactable = false; }
void onSend(SFEvent e) { if (m_mgr.isReady()) { string content = m_view.txtMsg.text; SFUtils.log("正在发送 " + content); SFRequestMsgUnitLogin req = new SFRequestMsgUnitLogin(); req.uid = "abc"; req.loginOrOut = 1; m_mgr.sendMessage(req); } else { m_infoMsg = "服务器未连接"; } }