Пример #1
0
    /// <summary>
    /// 解散队伍消息
    /// </summary>
    public void OnRemoveTeam(GameCmd.stRemoveTeamRelationUserCmd_CS cmd)
    {
        Engine.Utility.Log.LogGroup(GameDefine.LogGroup.User_LCY, "---6 >>>收到解散队伍消息");
        ClearTeamData();

        if (DataManager.Manager <UIPanelManager>().IsShowPanel(PanelID.TeamPanel))
        {
            DataManager.Manager <UIPanelManager>().SendMsg(PanelID.TeamPanel, UIMsgID.eDisbandTeam, null);
        }

        if (DataManager.Manager <UIPanelManager>().IsShowPanel(PanelID.MissionAndTeamPanel))
        {
            DataManager.Manager <UIPanelManager>().SendMsg(PanelID.MissionAndTeamPanel, UIMsgID.eDisbandTeam, null);
        }
        TipsManager.Instance.ShowTips(LocalTextType.Team_Leader_dongchangjiesanliaodongwu);//队长解散了队伍
    }
Пример #2
0
    /// <summary>
    /// 解散队伍
    /// </summary>
    public void ReqDisbandteam()
    {
        Action disbandTeam = delegate
        {
            if (MainPlayerIsLeader())
            {
                GameCmd.stRemoveTeamRelationUserCmd_CS cmd = new GameCmd.stRemoveTeamRelationUserCmd_CS();
                NetService.Instance.Send(cmd);
            }
            else
            {
                TipsManager.Instance.ShowTips(LocalTextType.Team_Leader_zhiyoudongchangcainengjiesandongwu);//只有队长才能解散队伍
            }
        };

        TipsManager.Instance.ShowTipWindow(TipWindowType.YesNO, "是否解散当前队伍?", disbandTeam, null);
    }
Пример #3
0
 public void Execute(GameCmd.stRemoveTeamRelationUserCmd_CS cmd)
 {
     DataManager.Manager <TeamDataManager>().OnRemoveTeam(cmd);
 }