Skip to content

Commit dfb79ee

Browse files
committed
Added missing bracket and using System.Linq. That will teach me to copy part into a file in stead of just the whole file.
1 parent 3b92861 commit dfb79ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Assets/HoloToolkit/Input/Scripts/Cursor/ObjectCursor.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

44
using System;
5+
using System.Linq;
56
using UnityEngine;
67

78
namespace 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
}

0 commit comments

Comments
 (0)