Moving player towards Gaze position VR hololens

I have two scripts but im unsure hot to get them to communicate together.
I have a cursor that follows the gaze of user.

I have a Player that is controlled by keyboard.

How do I convert this to have the player move towards the cursor or gaze direction?

Cursor Control

public class WorldCursor : MonoBehaviour
{
    private MeshRenderer meshRenderer;

    // Use this for initialization
    void Start()
    {
        // Grab the mesh renderer that's on the same object as this script.
        meshRenderer = this.gameObject.GetComponentInChildren<MeshRenderer>();
    }

    // Update is called once per frame
    void Update()
    {
        // Do a raycast into the world based on the user's
        // head position and orientation.
        var headPosition = Camera.main.transform.position;
        var gazeDirection = Camera.main.transform.forward;

        RaycastHit hitInfo;

        if (Physics.Raycast(headPosition, gazeDirection, out hitInfo))
        {
            // If the raycast hit a hologram...
            // Display the cursor mesh.
            meshRenderer.enabled = true;

            // Move thecursor to the point where the raycast hit.
            this.transform.position = hitInfo.point;

            // Rotate the cursor to hug the surface of the hologram.
            this.transform.rotation = Quaternion.FromToRotation(Vector3.up, hitInfo.normal);
        }
        else
        {
            // If the raycast did not hit a hologram, hide the cursor mesh.
            meshRenderer.enabled = false;
        }
    }
}

Player Controller

public class PlayerController : MonoBehaviour
{

    public float speed;

    private Rigidbody rb;

    void Start()
    {
        rb = GetComponent<Rigidbody>();
    }

    void FixedUpdate()
    {
        float moveHorizontal = Input.GetAxis("Horizontal");
        float moveVertical = Input.GetAxis("Vertical");

        Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);

        rb.AddForce(movement * speed);
    }
}
public class RayCast : MonoBehaviour
{
        public Ray ray;
        RaycastHit hitInfo;

        void Update()
        {
                ray = new Ray(transform.position, transform.forward);
                Debug.DrawRay (ray.origin, ray.direction*10, Color.blue);
                 if(Physics.Raycast(ray, out hitInfo))
                  {
                         if(hitInfo.transform.CompareTag("some tag"))
                               {
                                if(Input.GetButtonDown("Fire1"))
                                         {
                                               code/code/code/accion
                                         }
                                }
                  }
          }
}

This script should be within the moving object, in my case I have it on camera

“How do I convert this to have the player move towards the cursor or gaze direction?”

That solution does not make the player or the camera move. This is not a solution to the OP’s question.
I am also trying to achieve this…

Look in a direction with the HoloLens, read the direction and apply it to a rotation of the camera’s position.
So far all my attempts at reading the direction have failed. They work in the Unity game game window, but once it is uploaded to the HoloLens it stops displaying the values on the UI that I have on my canvas.

The code that is provided in HoloLens Academy 240 does not work and just puts out zeroes in the UI.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Update() {
        transform.Translate(Vector3.forward * Time.deltaTime);
        //transform.Translate(Vector3.up * Time.deltaTime, Space.World);
    }
}

This must go inside the camera