File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Assets/HoloToolkit/Input/Scripts/Cursor Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22// Licensed under the MIT License. See LICENSE in the project root for license information.
33
44using System ;
5+ using System . Linq ;
56using UnityEngine ;
67
78namespace HoloToolkit . Unity . InputModule
@@ -33,7 +34,7 @@ public struct ObjectCursorDatum
3334 /// </summary>
3435 protected override void OnEnable ( )
3536 {
36- if ( ParentTransform == null )
37+ if ( ParentTransform == null )
3738 {
3839 ParentTransform = transform ;
3940 }
@@ -48,7 +49,6 @@ protected override void OnEnable()
4849 public override void OnCursorStateChange ( CursorStateEnum state )
4950 {
5051 base . OnCursorStateChange ( state ) ;
51-
5252 if ( state != CursorStateEnum . Contextual )
5353 {
5454 ObjectCursorDatum newActive = CursorStateData . FirstOrDefault ( p => p . CursorState == state ) ;
@@ -64,6 +64,7 @@ public override void OnCursorStateChange(CursorStateEnum state)
6464 }
6565
6666 newActive . CursorObject . SetActive ( true ) ;
67+ }
6768 }
6869 }
6970}
You can’t perform that action at this time.
0 commit comments