reedv / 3D-Holo-Golf

Augmented reality beer pong with the Microsoft Hololens
0 stars 1 forks source link

SpatialMappingObserver does not rescan (in PlayspaceManager) when starting a 2nd game from StartingMenu scene #21

Closed reedv closed 7 years ago

reedv commented 7 years ago

PlayspaceManager was measuring if it was within the duration for its scanTime using the line: (Time.time - SpatialMappingManager.Instance.StartTime) < scanTime)

Changed this to: (Time.timeSinceLevelLoad - SpatialMappingManager.Instance.StartTime) < scanTime)

since Time.time continues counting as long as the unity app is active (rather than how long the current scene has been active).