Skip to content

Commit 8746354

Browse files
NeerajWkeveleigh
authored andcommitted
Fixing build break caused due to recent input changes merge (#466)
Simply added a curly brace EOF.
1 parent a618023 commit 8746354

File tree

1 file changed

+17
-16
lines changed
  • Assets/HoloToolkit-Examples/SpatialUnderstanding/SpatialUnderstanding-FeatureOverview/Scripts

1 file changed

+17
-16
lines changed

Assets/HoloToolkit-Examples/SpatialUnderstanding/SpatialUnderstanding-FeatureOverview/Scripts/AppState.cs

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -200,19 +200,19 @@ private void Start()
200200
InputManager.Instance.AddGlobalListener(gameObject);
201201
}
202202

203-
protected override void OnDestroy()
204-
{
205-
InputManager.Instance.RemoveGlobalListener(gameObject);
206-
}
207-
208-
private void Update_DebugDisplay(float deltaTime)
209-
{
210-
// Basic checks
211-
if (DebugDisplay == null)
203+
protected override void OnDestroy()
212204
{
213-
return;
205+
InputManager.Instance.RemoveGlobalListener(gameObject);
214206
}
215207

208+
private void Update_DebugDisplay(float deltaTime)
209+
{
210+
// Basic checks
211+
if (DebugDisplay == null)
212+
{
213+
return;
214+
}
215+
216216
// Update display text
217217
DebugDisplay.text = PrimaryText;
218218
DebugDisplay.color = PrimaryColor;
@@ -260,12 +260,13 @@ public void OnSourceLost(SourceStateEventData eventData)
260260
}
261261
}
262262

263-
public void OnInputClicked(InputClickedEventData eventData)
264-
{
265-
if ((SpatialUnderstanding.Instance.ScanState == SpatialUnderstanding.ScanStates.Scanning) &&
266-
!SpatialUnderstanding.Instance.ScanStatsReportStillWorking)
263+
public void OnInputClicked(InputClickedEventData eventData)
267264
{
268-
SpatialUnderstanding.Instance.RequestFinishScan();
265+
if ((SpatialUnderstanding.Instance.ScanState == SpatialUnderstanding.ScanStates.Scanning) &&
266+
!SpatialUnderstanding.Instance.ScanStatsReportStillWorking)
267+
{
268+
SpatialUnderstanding.Instance.RequestFinishScan();
269+
}
269270
}
270271
}
271-
}
272+
}

0 commit comments

Comments
 (0)