From b94c98ed5801d2d054585b40e0dbc1cdaa7ed344 Mon Sep 17 00:00:00 2001 From: Dogukan Erenel Date: Mon, 5 Sep 2016 16:42:55 -0500 Subject: [PATCH] * Fix by adding public members of tap and dragging events --- Scripts/Widgets/TouchWidget.cs | 40 ++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/Scripts/Widgets/TouchWidget.cs b/Scripts/Widgets/TouchWidget.cs index 74d906253..233d985e7 100644 --- a/Scripts/Widgets/TouchWidget.cs +++ b/Scripts/Widgets/TouchWidget.cs @@ -40,7 +40,7 @@ protected override string GetName() #region Private Data [Serializable] - private class TapEventMapping + public class TapEventMapping { public GameObject m_TapObject = null; public bool m_TapOnObject = true; @@ -50,7 +50,7 @@ private class TapEventMapping }; [Serializable] - private class FullScreenDragEventMapping + public class FullScreenDragEventMapping { [Tooltip("If there is no drag layer object set, it uses FullScreen")] public GameObject m_DragLayerObject = null; @@ -67,6 +67,42 @@ private class FullScreenDragEventMapping private List m_FullScreenDragMappings = new List(); #endregion + #region Public Members + + /// + /// Gets or sets the tap mappings. + /// + /// The tap mappings. + public List TapMappings + { + get + { + return m_TapMappings; + } + set + { + m_TapMappings = value; + } + } + + /// + /// Gets or sets the full screen drag mappings. + /// + /// The full screen drag mappings. + public List FullScreenDragMappings + { + get + { + return m_FullScreenDragMappings; + } + set + { + m_FullScreenDragMappings = value; + } + } + + #endregion + #region Event Handlers private void OnEnable() {