Beispiel #1
0
 private void OnLine(UserDTO user)
 {
     GameData.user = user;
     //移除遮罩
     SendMessage("CloseMask");
     //刷新UI数据
     SendMessage("RefreshView");
 }
Beispiel #2
0
 private void GetInfo(UserDTO user)
 {
     if (user == null)
     {
         //显示创建面板
         SendMessage("OpenCreatePlane");
     }
     else
     {
         //向服务器申请登录
         this.Wirte(Protocol.TYPE_USER,0,UserProtocol.ONLINE_CREQ,null);
     }
 }