コード例 #1
0
 private void OnDisable()
 {
     if (tracker != null)
     {
         tracker.Dispose();
     }
     if (device != null)
     {
         device.Dispose();
     }
 }
コード例 #2
0
 private void OnDisable()
 {
     //todo test if only called once at the end of the program, if so, renable the below
     print("DebugRenderer onDisable was called");
     //device.StopCameras();
     //k4a_device_close(device) here.
     if (tracker != null)
     {
         tracker.Dispose();
     }
     if (device != null)
     {
         device.StopCameras();
         device.Dispose();
     }
 }