From d0e1834bd1972b4262d3e9b46ed55698a7f92025 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 30 Apr 2021 22:49:51 +0800 Subject: *misc --- .../UnityEngine.UI/EventSystem/InputModules/StandaloneInputModule.cs | 2 +- Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/UIControls/Button.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'Assets/uGUI-2017.1/UnityEngine.UI') diff --git a/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/StandaloneInputModule.cs b/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/StandaloneInputModule.cs index 7db371a..592ea4d 100644 --- a/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/StandaloneInputModule.cs +++ b/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/StandaloneInputModule.cs @@ -375,7 +375,7 @@ namespace UnityEngine.EventSystems // 发布submit事件或者cancel事件 var data = GetBaseEventData(); - if (input.GetButtonDown(m_SubmitButton)) + if (input.GetButtonDown(m_SubmitButton)) // 这里是Project>Input里面配置的 ExecuteEvents.Execute(eventSystem.currentSelectedGameObject, data, ExecuteEvents.submitHandler); if (input.GetButtonDown(m_CancelButton)) diff --git a/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/UIControls/Button.cs b/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/UIControls/Button.cs index 8be5532..8641b05 100644 --- a/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/UIControls/Button.cs +++ b/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/UIControls/Button.cs @@ -1,5 +1,6 @@ using System; using System.Collections; +using System.Collections.Generic; using UnityEngine.Events; using UnityEngine.EventSystems; using UnityEngine.Serialization; @@ -71,5 +72,6 @@ namespace UnityEngine.UI DoStateTransition(currentSelectionState, false); } + } } -- cgit v1.1-26-g67d0