hexiaojie 2 éve
szülő
commit
f500ba53a0

+ 3 - 5
GameClient/Assets/Game/HotUpdate/Views/Bag/GiftBoxSelectorView.cs

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