File tree Expand file tree Collapse file tree 1 file changed +17
-16
lines changed
Assets/HoloToolkit-Examples/SpatialUnderstanding/SpatialUnderstanding-FeatureOverview/Scripts Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments