コード例 #1
0
    /// <summary>
    /// 选择区服方法
    /// </summary>
    /// <param name="p"></param>
    private void GameServerSelectViewBtnSelectGameClick(object[] p)
    {
        //1.打开选择区服的视图
        m_uIGameServerSelectView = WindowUIMgr.Instance.OpenWindow(WindowUIType.GameServerSelect).GetComponent <UIGameServerSelectView>();

        m_uIGameServerSelectView.m_OnGameServerPageClickCallback = GetGameServer;

        //2.打开选服视图的时候 从服务器拉去页签和区服数据
        GetGameServerPage();
    }
コード例 #2
0
 /// <summary>
 /// 打开服务器选择视图
 /// </summary>
 private void OpenGameServerSelectView()
 {
     m_GameServerSelectView             = UIViewUtil.Instance.OpenWindow(UIViewType.GameServerSelect).GetComponent <UIGameServerSelectView>();
     m_GameServerSelectView.OnClickPage = OnClickPage;
     m_GameServerSelectView.OnClickItem = OnClickItem;
 }