public void ChallengeFloor(int floor) { SetDoingFloor(floor); ChallengeStageEnterStageActionParam param = new ChallengeStageEnterStageActionParam(); param.Floor = (uint)GetDoingFloor(); Net.Instance.DoAction((int)Message.MESSAGE_ID.ID_MSG_CHALLENGE_STAGE_BEGIN, param); }
protected override void OnRequest(request_challenge_stage_begin request, object userdata) { ChallengeStageEnterStageActionParam param = userdata as ChallengeStageEnterStageActionParam; if (param == null) { return; } request.floor = param.Floor; }