diff options
author | chai <chaifix@163.com> | 2021-04-30 22:49:51 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-04-30 22:49:51 +0800 |
commit | d0e1834bd1972b4262d3e9b46ed55698a7f92025 (patch) | |
tree | c8cc655a9729ab64089a24ccc28bd0e186cb057d /Assets/uGUI-2017.1/UnityEngine.UI | |
parent | 36f7e54273c5776fea352742a2189702242aa5c0 (diff) |
*misc
Diffstat (limited to 'Assets/uGUI-2017.1/UnityEngine.UI')
-rw-r--r-- | Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/StandaloneInputModule.cs | 2 | ||||
-rw-r--r-- | Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/UIControls/Button.cs | 2 |
2 files changed, 3 insertions, 1 deletions
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); } + } } |