/// <summary> /// 刷新挑战次数响应 /// </summary> /// <param name="cmd"></param> public void OnRefreshChallengeTimesRes(stRefreshTimesArenaUserCmd_CS cmd) { m_challengeTimes = (uint)GameTableManager.Instance.GetGlobalConfig <int>("Arena_ChallTimes"); if (DataManager.Manager <UIPanelManager>().IsShowPanel(PanelID.ArenaPanel)) { DataManager.Manager <UIPanelManager>().SendMsg(PanelID.ArenaPanel, UIMsgID.eArenaTimesUpdate, null); } if (ChallengeTarget != null) { ReqChallengeInvite(ChallengeTarget.id, ChallengeTarget.name, ChallengeTarget.rank, ChallengeTarget.online_state); } }
/// <summary> /// 刷新挑战次数请求 /// </summary> /// <param name="cmd"></param> public void ReqRefreshChallengeTimes() { stRefreshTimesArenaUserCmd_CS cmd = new stRefreshTimesArenaUserCmd_CS(); NetService.Instance.Send(cmd); }
public void OnRefreshChallengeTimesRes(stRefreshTimesArenaUserCmd_CS cmd) { DataManager.Manager <ArenaManager>().OnRefreshChallengeTimesRes(cmd); }