Ejemplo n.º 1
0
    private void TrackingStatusUpdate(TrackingStatusState nextTrackingStatusIconState)
    {
        //Turn off tracking from any state
        if (nextTrackingStatusIconState == TrackingStatusState.NotSearchingAndNotTracking)
        {
            currentTrackingStatusState = TrackingStatusState.NotSearchingAndNotTracking;
            trackingStatusIconTransition.repeaterForTrackingStatus = false;
            trackingStatusIconTransition.TurnOff();
            trackingStatusGreenHighlightTransition.TurnOff();
            trackingResetButton.interactable = false;
        }

        //Turn on searching from nothing state
        if (nextTrackingStatusIconState == TrackingStatusState.SearchingForATrackableNew)
        {
            currentTrackingStatusState = TrackingStatusState.SearchingForATrackableNew;
            trackingStatusIconTransition.repeaterForTrackingStatus = true;
            trackingStatusIconTransition.TurnOn();
            trackingStatusGreenHighlightTransition.TurnOff();
            trackingResetButton.interactable = false;
        }

        //Turn on searching again while tracking
        if (nextTrackingStatusIconState == TrackingStatusState.SearchingForATrackableContinued)
        {
            currentTrackingStatusState = TrackingStatusState.SearchingForATrackableContinued;
            trackingStatusIconTransition.repeaterForTrackingStatus = true;
            trackingStatusIconTransition.TurnOn();
        }

        //Tracking at least one image
        if (nextTrackingStatusIconState == TrackingStatusState.TrackedAtLeastOneTrackable)
        {
            currentTrackingStatusState = TrackingStatusState.TrackedAtLeastOneTrackable;
            trackingStatusIconTransition.repeaterForTrackingStatus = false;
            trackingStatusIconTransition.TurnOff();
            trackingStatusGreenHighlightTransition.TurnOn();
            trackingResetButton.interactable = true;
        }
    }
Ejemplo n.º 2
0
 private void Start()
 {
     currentTrackingStatusState = TrackingStatusState.NotSearchingAndNotTracking;
     SetRightSideUIToDefault();
 }