From ff5a3fbf31db349db11bbc5c60ba199d26780f19 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 7 Apr 2021 15:38:57 +0800 Subject: =?UTF-8?q?*=E7=A7=BB=E5=8A=A8=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UnityEngine.UI/EventSystem/InputModules/BaseInputModule.cs | 3 +++ .../UnityEngine.UI/EventSystem/InputModules/PointerInputModule.cs | 1 + 2 files changed, 4 insertions(+) (limited to 'Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules') diff --git a/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/BaseInputModule.cs b/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/BaseInputModule.cs index 66736d1..f25f3fe 100644 --- a/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/BaseInputModule.cs +++ b/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/BaseInputModule.cs @@ -56,6 +56,9 @@ namespace UnityEngine.EventSystems protected override void OnEnable() { base.OnEnable(); + if(input != null) + { + } m_EventSystem = GetComponent(); m_EventSystem.UpdateModules(); // 把此input module加入EventSystem } diff --git a/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/PointerInputModule.cs b/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/PointerInputModule.cs index 3f93e7a..3aa8e09 100644 --- a/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/PointerInputModule.cs +++ b/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/PointerInputModule.cs @@ -14,6 +14,7 @@ namespace UnityEngine.EventSystems public const int kFakeTouchesId = -4; + // 一个池子 protected Dictionary m_PointerData = new Dictionary(); protected bool GetPointerData(int id, out PointerEventData data, bool create) -- cgit v1.1-26-g67d0