Explorar o código

Quit application automatically after calibration

Nick Steyer %!s(int64=2) %!d(string=hai) anos
pai
achega
368379492d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Assets/CalibrationRecorderBehavior.cs

+ 2 - 0
Assets/CalibrationRecorderBehavior.cs

@@ -66,6 +66,8 @@ namespace Assets
         private void MarkerBehavior_PathFinished(object sender, EventArgs e)
         {
             enabled = false;
+            taskQueue.Add(() => Application.Quit());
+            Task.Run(() => taskQueue.Take().Invoke());
         }
 
         private void PersonManager_DetectionReady(object sender, EventArgs e)