Skip to content

Commit eca3dff

Browse files
author
Dogukan Erenel
committed
* Minor details for touch event. Disabled some logs and checking null case on application quit.
1 parent 1999b5a commit eca3dff

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Scripts/Utilities/TouchEventManager.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,13 @@ private void OnDisable()
289289
m_ReleaseGesture.Released -= ReleaseGestureReleased;
290290
if ( m_LongPressGesture != null )
291291
m_LongPressGesture.LongPressed -= LongPressGesturePressed;
292+
293+
if (m_DragEvents != null)
294+
m_DragEvents.Clear();
295+
if (m_TapEvents != null)
296+
m_TapEvents.Clear();
297+
if (m_DoubleTapEvents != null)
298+
m_DoubleTapEvents.Clear();
292299
}
293300

294301
/// <summary>

Scripts/Widgets/TouchWidget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private void OnDisable()
9191
{
9292
if (TouchEventManager.Instance == null)
9393
{
94-
Log.Error ("TouchWidget", "There should be TouchEventManager in the scene! No TouchEventManager found.");
94+
//Log.Error ("TouchWidget", "There should be TouchEventManager in the scene! No TouchEventManager found.");
9595
return;
9696
}
9797

0 commit comments

Comments
 (0)