public void OnDeleteBtnClick() { cmd_match_room_hero_exit data = new cmd_match_room_hero_exit(); data.bIsOb = 1; data.nPos = m_nPos; ViewEventHelper.Instance.SendCommand <cmd_match_room_hero_exit>(GameLogicDef.GVIEWCM_MATCH_MASTER_KICK_ROLE, ref data); }
//点击移除房间成员按钮 public void onRemovePlayerBtnClick(int _slotCamp, int _slotID) { cmd_match_room_hero_exit data = new cmd_match_room_hero_exit(); data.nCamp = _slotCamp; data.nPlayerSlotID = _slotID; ViewEventHelper.Instance.SendCommand <cmd_match_room_hero_exit>(GameLogicDef.GVIEWCM_MATCH_MASTER_KICK_ROLE, ref data); }
public void SetRoleSlotEmpty(cmd_match_room_hero_exit _data) { Value tmpTeamFrame = null; GetTeamFrame(_data.nCamp, out tmpTeamFrame); if (Value.IsValueValid(tmpTeamFrame)) { if (tmpTeamFrame.Invoke("ResetRoleSlot", _data.nPlayerSlotID) == null) { Trace.LogError("call ResetRoleSlot faild"); } } }