void doLogin()
        {
            SFRequestMsgUnitLogin req = new SFRequestMsgUnitLogin();

            req.loginOrOut = 1;
            SFNetworkManager.instance.sendMessage(req);
        }
Beispiel #2
0
        public void onLogout(SFEvent e)
        {
            SFRequestMsgUnitLogin req = new SFRequestMsgUnitLogin();

            req.loginOrOut = 2;
            SFNetworkManager.instance.sendMessage(req);
            m_view.btnLogout.interactable = false;
        }
Beispiel #3
0
 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 = "服务器未连接";
     }
 }