/// <summary> /// 添加玩家点击 /// </summary> public void OnAddPlayersClick() { ClubAddWidget view = GetWidget <ClubAddWidget>("Windows/ClubView/ClubAddWidget", mContent); view.SetData(eClubAddType.player, (id) => { Global.Inst.GetController <ClubController>().SendAddUser(id); }); }
/// <summary> /// 添加联盟点击 /// </summary> public void OnAddUnionClick() { ClubAddWidget view = GetWidget <ClubAddWidget>("Windows/ClubView/ClubAddWidget", mContent); view.SetData(eClubAddType.club, (id) => { Global.Inst.GetController <ClubController>().SendAddClubConpany(id); }); }
public void OnInviteClick() { ClubAddWidget view = GetWidget <ClubAddWidget>("Windows/ClubView/ClubAddWidget", Global.Inst.GetController <ClubController>().mView.transform); view.SetData(eClubAddType.club, (id) => { Global.Inst.GetController <ClubController>().SendAddClubConpany(id); }); }