void OnDisable()
 {
     if (this.exporter != null)
     {
         this.exporter.Export(this.OutputDirectory, this.Filename);
         this.exporter = null;
         Console.Log("Skeleton Exporting Stopped ! ( " + this.totalFrames + "  total frames recoded )");
     }
 }
 void OnEnable()
 {
     if (this.tracker == null)
     {
         this.enabled = false;
         Debugging.Error("No Tracker Attached ! Cant Export , Disabling ....");
     } else
     {
         this.exporter = SkeletonOneExporterFactory.CreateExporter(SkeletonOneExporterType.Text);
         this.totalFrames = 0;
         Console.Log("Skeleton Exporting Started !");
     }
 }