protected override void OnTrackingFound()
    {
        base.OnTrackingFound();

        if (!_detected)
        {
            _canvasController.EnableTargetPanel(false);

            _animalsCanvasController.EnableButton(true);
        }

        _detected = true;
    }
Esempio n. 2
0
    public void OnMarkerFound(TestTrackableBehaviour trackableBehaviour)
    {
        UpdateTrackablesEditor(trackableBehaviour.TrackableName);

        trackableBehaviour.OnTrackerUpdate(TestTrackableBehaviour.Status.TRACKED);

        var trackableGo = trackableBehaviour.gameObject;

        _mainCamera.transform.position = trackableGo.transform.position + offSet * trackableGo.transform.up;

        _mainCamera.transform.eulerAngles = new Vector3(0, trackableGo.transform.eulerAngles.y, 0);

        _animalsCanvasController.EnableTargetPanel(false);

        _animalsCanvasController.EnableButton(true);
    }