|
@@ -77,7 +77,7 @@ namespace GFGGame
|
|
|
|
|
|
_selDic.Clear();
|
|
|
_selCount = 0;
|
|
|
- Debug.Log("OnShown 测试 GiftBoxSelectorView");
|
|
|
+
|
|
|
UpdateView();
|
|
|
UpdateList();
|
|
|
SetSelAllNum();
|
|
@@ -238,7 +238,6 @@ namespace GFGGame
|
|
|
|
|
|
private void OnTextInputOpen(EventContext context)
|
|
|
{
|
|
|
- Debug.Log("OnTextInputOpen打开输入框触发");
|
|
|
GObject sender = context.sender as GObject;
|
|
|
GObject obj = sender.parent;
|
|
|
UI_ListSelectorItem listItem = UI_ListSelectorItem.Proxy(obj);
|
|
@@ -246,11 +245,10 @@ namespace GFGGame
|
|
|
// 当触摸输入框时执行的逻辑
|
|
|
if (listItem.m_txtSelNum.text == "0")
|
|
|
{
|
|
|
- Debug.Log("OnTextInputOpen打开输入框触发--txtSelNum为0");
|
|
|
// 将文本设置为空字符串
|
|
|
- listItem.m_txtSelNum.text = " ";
|
|
|
+ listItem.m_txtSelNum.text = default;
|
|
|
// 延迟 0.2 秒后恢复文本
|
|
|
- Timers.inst.Add(0.2f, 1, (obj) => { listItem.m_txtSelNum.text = " "; });
|
|
|
+ Timers.inst.Add(0.2f, 1, (obj) => { listItem.m_txtSelNum.text = default; });
|
|
|
}
|
|
|
}
|
|
|
|