Skip to content

Commit 3b92861

Browse files
committed
Used explicit variable declaration in stead of var - by request
1 parent 44e9e61 commit 3b92861

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ public override void OnCursorStateChange(CursorStateEnum state)
5151

5252
if (state != CursorStateEnum.Contextual)
5353
{
54-
var newActive = CursorStateData.FirstOrDefault(p => p.CursorState == state);
54+
ObjectCursorDatum newActive = CursorStateData.FirstOrDefault(p => p.CursorState == state);
5555
if (newActive.Name == null)
5656
{
5757
return;
5858
}
5959

60-
var oldActive = CursorStateData.FirstOrDefault(p => p.CursorObject.activeSelf);
60+
ObjectCursorDatum oldActive = CursorStateData.FirstOrDefault(p => p.CursorObject.activeSelf);
6161
if (oldActive.Name != null)
6262
{
6363
oldActive.CursorObject.SetActive(false);

0 commit comments

Comments
 (0)