浏览代码

Quit application automatically after calibration

Nick Steyer 1 年之前
父节点
当前提交
368379492d
共有 1 个文件被更改,包括 2 次插入0 次删除
  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)