From eb27e5fd31f73b998a4bbd85511a31e40b8c61b7 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 21 十一月 2025 17:03:47 +0800
Subject: [PATCH] 0312 关闭游戏内日志
---
Main/Component/UI/Common/ClickScreenOtherSpace.cs | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/Main/Component/UI/Common/ClickScreenOtherSpace.cs b/Main/Component/UI/Common/ClickScreenOtherSpace.cs
index a0a701a..f2dd64b 100644
--- a/Main/Component/UI/Common/ClickScreenOtherSpace.cs
+++ b/Main/Component/UI/Common/ClickScreenOtherSpace.cs
@@ -5,6 +5,7 @@
using System;
using UnityEngine.Events;
+//鐐瑰嚮鍏朵粬鍖哄煙瑙﹀彂鎺у埗鏄鹃殣 鍙檮鍔犱簨浠�
[RequireComponent(typeof(RectTransform))]
public class ClickScreenOtherSpace : MonoBehaviour
{
@@ -46,20 +47,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