From ab076c50f6b1224eac6e2b87e7972a34abd817c2 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 10 十月 2025 14:43:44 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/Component/UI/Common/ClickScreenOtherSpace.cs |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/Main/Component/UI/Common/ClickScreenOtherSpace.cs b/Main/Component/UI/Common/ClickScreenOtherSpace.cs
index a0a701a..62bb4c0 100644
--- a/Main/Component/UI/Common/ClickScreenOtherSpace.cs
+++ b/Main/Component/UI/Common/ClickScreenOtherSpace.cs
@@ -46,20 +46,26 @@
                 case RespondType.In:
                     if (RectTransformUtility.RectangleContainsScreenPoint(this.transform as RectTransform, sp, CameraManager.uiCamera))
                     {
-                        m_ClickOtherEvent?.Invoke();
                         this.SetActive(!m_DeActiveSelf);
+                        m_ClickOtherEvent?.Invoke();
                     }
                     break;
                 case RespondType.Out:
                     if (!RectTransformUtility.RectangleContainsScreenPoint(this.transform as RectTransform, sp, CameraManager.uiCamera))
                     {
-                        m_ClickOtherEvent?.Invoke();
                         this.SetActive(!m_DeActiveSelf);
+                        m_ClickOtherEvent?.Invoke();
                     }
                     break;
+            }
+        }
+        else if (Input.GetMouseButtonUp(0))
+        {
+            switch (m_RespondType)
+            {
                 case RespondType.InOut:
-                    m_ClickOtherEvent?.Invoke();
                     this.SetActive(!m_DeActiveSelf);
+                    m_ClickOtherEvent?.Invoke();
                     break;
             }
         }

--
Gitblit v1.8.0