/// <summary> /// 点击申请加入茶馆按钮 /// </summary> /// <param name="item"></param> public void ClickApplyBtn(TeaHouseListItem item) { TeaUtil.ApplyJoinTeaHouse(item.TeaHouseIdLabel.Value, null, success => { var data = item.GetData <TeaHouseListeItemData>(); if (data != null) { data.OnApplySuccess(); ChangeChildItem(item, data); } }); }
/// <summary> /// 点击进入茶馆按钮 /// </summary> /// <param name="item"></param> public void ClickJoinBtn(TeaHouseListItem item) { var teaHouseData = item.GetData <TeaHouseListeItemData>(); if (teaHouseData != null) { TeaUtil.FindTeaHouse(teaHouseData.TeaId, null, success => { if (gameObject.activeInHierarchy) { StartCoroutine(OnEnterTeaHouseSuccess.WaitExcuteCalls()); } }); } }