Пример #1
0
 /// <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);
         }
     });
 }
Пример #2
0
        /// <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());
                    }
                });
            }
        }
Пример #3
0
 /// <summary>
 /// 点击查找茶馆按钮
 /// </summary>
 /// <param name="teaId"></param>
 public void ClickFindTeaBtn(string teaId)
 {
     TeaUtil.FindTeaHouse(teaId, null, success =>
     {
         var dic      = success as Dictionary <string, object>;
         var teaData  = new TeaData(dic);
         var itemData = new TeaHouseListeItemData(success, typeof(TeaHouseListeItemData));
         if (!teaData.Mstatus.Equals(TeaState.Invalid))
         {
             if (FindInfoView)
             {
                 FindInfoView.UpdateView(itemData);
             }
             if (gameObject.activeInHierarchy)
             {
                 StartCoroutine(OnFindTeaHouseSuccess.WaitExcuteCalls());
             }
         }
         else
         {
             YxWindowManager.ShowMessageWindow(FindEmptyNotice);
         }
     }, false);
 }
Пример #4
0
 /// <summary>
 /// 权限操作成功回调(同意申请,拒绝申请或请离茶馆)
 /// </summary>
 /// <param name="data"></param>
 private void OnLimitChange(object data)
 {
     TeaUtil.GetBackString(data);
     RemoveChildItem(CurItem);
 }
Пример #5
0
 /// <summary>
 /// 解散成功回调
 /// </summary>
 /// <param name="data"></param>
 private void OnDissolveSucess(object data)
 {
     TeaUtil.GetBackString(data);
     RemoveChildItem(CurItem);
 }