Esempio n. 1
0
    public void Initialize()
    {
        _positionInitial = transform.localPosition;
        _positionLast    = _positionInitial;
        _rotationInitial = transform.localRotation;
        _rotationLast    = _rotationInitial;

        /* Callbacks are set up to disable or re-enable the alignment initializer. */
        TargetObjectTracker.GetComponentInChildren <ObjectTrackable>(true).OnObjectRecognized.AddListener(OnObjectRecognized);
        TargetObjectTracker.GetComponentInChildren <ObjectTrackable>(true).OnObjectLost.AddListener(OnObjectLost);
    }