|
@@ -123,7 +123,7 @@ namespace GFGGame
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- this.clickBlankToClose = false;
|
|
|
+ // this.clickBlankToClose = false;
|
|
|
// _ui.m_t0.Play(() =>
|
|
|
// {
|
|
|
_fightTimes = _fightType == 1 ? 1 : _fightTimes;
|
|
@@ -140,11 +140,14 @@ namespace GFGGame
|
|
|
}
|
|
|
private async void ReqFightQuickly(object param)
|
|
|
{
|
|
|
- bool isFinish = _needItemId > 0 && _needItemCount > 0 && ItemDataManager.GetItemNum(_needItemId) >= _needItemCount;
|
|
|
+ int hasCount = ItemDataManager.GetItemNum(_needItemId);
|
|
|
+ bool isFinish = _needItemId > 0 && _needItemCount > 0 && hasCount >= _needItemCount;
|
|
|
+ _ui.m_txtItemNeedNum.text = string.Format("还需:{0}个", Math.Max(0, _needItemCount - hasCount));
|
|
|
if (_index >= _fightTimes || isFinish)
|
|
|
{
|
|
|
if (isFinish)
|
|
|
{
|
|
|
+ _ui.m_txtItemNeedNum.text = "材料已足够";
|
|
|
PromptController.Instance.ShowFloatTextPrompt("材料已足够");
|
|
|
}
|
|
|
ShowEnding();
|
|
@@ -197,7 +200,7 @@ namespace GFGGame
|
|
|
_ui.m_comCostCurrent.visible = true;
|
|
|
|
|
|
_index = 0;
|
|
|
- this.clickBlankToClose = true;
|
|
|
+ // this.clickBlankToClose = true;
|
|
|
}
|
|
|
|
|
|
private void ListItemRender(int index, GObject item)
|