/// <summary>
 ///     Implementation of the ITrackableEventHandler function called when the
 ///     tracking state changes.
 /// </summary>
 public void OnTrackableStateChanged(
     TrackableBehaviour.Status previousStatus,
     TrackableBehaviour.Status newStatus)
 {
     if (newStatus == TrackableBehaviour.Status.DETECTED ||
         newStatus == TrackableBehaviour.Status.TRACKED ||
         newStatus == TrackableBehaviour.Status.EXTENDED_TRACKED)
     {
         Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " found");
         OnTrackingFound();
         if (tag != null)
         {
             tag.ShowInfo();
         }
     }
     else if (previousStatus == TrackableBehaviour.Status.TRACKED &&
              newStatus == TrackableBehaviour.Status.NO_POSE)
     {
         Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " lost");
         OnTrackingLost();
         if (tag != null)
         {
             tag.HideInfo();
         }
     }
     else
     {
         // For combo of previousStatus=UNKNOWN + newStatus=UNKNOWN|NOT_FOUND
         // Vuforia is starting, but tracking has not been lost or found yet
         // Call OnTrackingLost() to hide the augmentations
         OnTrackingLost();
     }
 }