Skip to content

Commit 289b41b

Browse files
authored
Merge pull request #150 from watson-developer-cloud/feature-fix-149-TouchWidget
Feature fix 149 touch widget
2 parents f1f060e + a9c274d commit 289b41b

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

Scripts/Widgets/TouchWidget.cs

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected override string GetName()
4040

4141
#region Private Data
4242
[Serializable]
43-
private class TapEventMapping
43+
public class TapEventMapping
4444
{
4545
public GameObject m_TapObject = null;
4646
public bool m_TapOnObject = true;
@@ -50,7 +50,7 @@ private class TapEventMapping
5050
};
5151

5252
[Serializable]
53-
private class FullScreenDragEventMapping
53+
public class FullScreenDragEventMapping
5454
{
5555
[Tooltip("If there is no drag layer object set, it uses FullScreen")]
5656
public GameObject m_DragLayerObject = null;
@@ -67,6 +67,42 @@ private class FullScreenDragEventMapping
6767
private List<FullScreenDragEventMapping> m_FullScreenDragMappings = new List<FullScreenDragEventMapping>();
6868
#endregion
6969

70+
#region Public Members
71+
72+
/// <summary>
73+
/// Gets or sets the tap mappings.
74+
/// </summary>
75+
/// <value>The tap mappings.</value>
76+
public List<TapEventMapping> TapMappings
77+
{
78+
get
79+
{
80+
return m_TapMappings;
81+
}
82+
set
83+
{
84+
m_TapMappings = value;
85+
}
86+
}
87+
88+
/// <summary>
89+
/// Gets or sets the full screen drag mappings.
90+
/// </summary>
91+
/// <value>The full screen drag mappings.</value>
92+
public List<FullScreenDragEventMapping> FullScreenDragMappings
93+
{
94+
get
95+
{
96+
return m_FullScreenDragMappings;
97+
}
98+
set
99+
{
100+
m_FullScreenDragMappings = value;
101+
}
102+
}
103+
104+
#endregion
105+
70106
#region Event Handlers
71107
private void OnEnable()
72108
{

0 commit comments

Comments
 (0)