From b1276a1b76ac3b87add90e0c6b887d5afea1cfea Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 11 Oct 2020 09:12:08 +0800 Subject: =?UTF-8?q?*event=20system=E5=88=9D=E6=8E=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs') diff --git a/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs b/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs index 4f04f42..58ac97c 100644 --- a/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs +++ b/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs @@ -4,13 +4,15 @@ using UnityEngine.Serialization; namespace UnityEngine.EventSystems { - [Obsolete("TouchInputModule is no longer required as Touch input is now handled in StandaloneInputModule.")] + //c TouchInputModule被废弃了,统一在standaloneInputModule中处理 + [Obsolete("TouchInputModule is no longer required as Touch input is now handled in StandaloneInputModule.")] [AddComponentMenu("Event/Touch Input Module")] public class TouchInputModule : PointerInputModule { protected TouchInputModule() {} + // 触摸点位置 private Vector2 m_LastMousePosition; private Vector2 m_MousePosition; @@ -31,6 +33,7 @@ namespace UnityEngine.EventSystems set { m_ForceModuleActive = value; } } + //c 更新鼠标(触摸点)位置 public override void UpdateModule() { m_LastMousePosition = m_MousePosition; -- cgit v1.1-26-g67d0