@@ -331,7 +331,7 @@ private void UnregisterGazeManager()
331331 }
332332 }
333333
334- private static readonly ExecuteEvents . EventFunction < IFocusable > OnFocusEnterEventHadler =
334+ private static readonly ExecuteEvents . EventFunction < IFocusable > OnFocusEnterEventHandler =
335335 delegate ( IFocusable handler , BaseEventData eventData )
336336 {
337337 handler . OnFocusEnter ( ) ;
@@ -352,7 +352,7 @@ private void GazeManager_FocusedChanged(GameObject previousObject, GameObject ne
352352
353353 if ( previousObject != null )
354354 {
355- ExecuteEvents . ExecuteHierarchy ( previousObject , null , OnFocusEnterEventHadler ) ;
355+ ExecuteEvents . ExecuteHierarchy ( previousObject , null , OnFocusExitEventHandler ) ;
356356 if ( ShouldSendUnityUiEvents )
357357 {
358358 ExecuteEvents . ExecuteHierarchy ( previousObject , GazeManager . Instance . UnityUIPointerEvent , ExecuteEvents . pointerExitHandler ) ;
@@ -361,7 +361,7 @@ private void GazeManager_FocusedChanged(GameObject previousObject, GameObject ne
361361
362362 if ( newObject != null )
363363 {
364- ExecuteEvents . ExecuteHierarchy ( newObject , null , OnFocusExitEventHandler ) ;
364+ ExecuteEvents . ExecuteHierarchy ( newObject , null , OnFocusEnterEventHandler ) ;
365365 if ( ShouldSendUnityUiEvents )
366366 {
367367 ExecuteEvents . ExecuteHierarchy ( newObject , GazeManager . Instance . UnityUIPointerEvent , ExecuteEvents . pointerEnterHandler ) ;
0 commit comments