Vector3.Movetowards not working

When previewing in unity my gameobjects move. When viewing thru glasses, no movement.

Below is the code i am using. Any ideas?

public Transform[] waypoints;
private int _currentWaypointIndex = 0;
private float _speed = .05f;

private void Update()
{
    Transform wp = waypoints[_currentWaypointIndex];
    if (Vector3.Distance(transform.position, wp.position) < 0.01f)
    {
        _currentWaypointIndex = (_currentWaypointIndex + 1) % waypoints.Length;
    }
    else
    {
        transform.position = Vector3.MoveTowards(
            transform.position,
            wp.position,
            _speed * Time.deltaTime);
    }
}

Hi, I tested the sample code on the website of Unity, and it worked when viewing through our glasses, you could compare the sample code with your own.