Exemplo n.º 1
0
    private void ConnectedServer(RetLoginMsg msg)
    {
        RetTeamAddr addr = new RetTeamAddr();

        addr.Key     = msg.Key;
        addr.Address = msg.Address;
        NetworkUpdater.Instance.OnConnectedServer(addr);
    }
 /// <summary>
 /// 登录成功后连接网关服
 /// </summary>
 /// <param name="data"></param>
 public void OnConnectedServer(RetTeamAddr data)
 {
     if (data != null)
     {
         StopAllCoroutines();
         StartCoroutine(CheckConnect(data.Address, () => {
             Debug.Log(" server connect success");
             TcpSendTest(data.Key);
         }));
     }
 }