From 332610ed31d7ac8ca75ab9dfdf47f480d1829b10 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 07 十一月 2025 12:42:04 +0800
Subject: [PATCH] 236 子 【福利内容】每日任务/每周任务/章节奖励 / 【福利内容】每日任务/每周任务/章节奖励-客户端

---
 Main/Component/UI/Common/ButtonClickInterval.cs |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/Main/Component/UI/Common/ButtonClickInterval.cs b/Main/Component/UI/Common/ButtonClickInterval.cs
index f4eb65a..4b44d99 100644
--- a/Main/Component/UI/Common/ButtonClickInterval.cs
+++ b/Main/Component/UI/Common/ButtonClickInterval.cs
@@ -4,25 +4,25 @@
 using System.Collections;
 
     
-    public class ButtonClickInterval : MonoBehaviour
+public class ButtonClickInterval : MonoBehaviour
+{
+    [SerializeField] float interval = 1f;
+    [SerializeField] Button targetBtn;
+
+    private void Awake()
     {
-        [SerializeField] float interval = 1f;
-        [SerializeField] Button targetBtn;
-
-        private void Awake()
-        {
-            targetBtn.AddListener(OnClick);
-        }
-
-        private void OnClick()
-        {
-            targetBtn.enabled = false;
-            StartCoroutine(DelayClick());
-        }
-
-        IEnumerator DelayClick()
-        {
-            yield return new WaitForSeconds(interval);
-            targetBtn.enabled = true;
-        }
+        targetBtn.AddListener(OnClick);
     }
+
+    private void OnClick()
+    {
+        targetBtn.enabled = false;
+        StartCoroutine(DelayClick());
+    }
+
+    IEnumerator DelayClick()
+    {
+        yield return new WaitForSeconds(interval);
+        targetBtn.enabled = true;
+    }
+}

--
Gitblit v1.8.0