Can you put a code into a spoiler?

Experiment

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Player : MonoBehaviour {

    public float speed;
    public GameObject target;

    void Update () {
        transform.position = Vector3.MoveTowards(transform.position, Pathfinding.getDirection(transform, target.transform.position), Time.deltaTime*speed);
    }
}

Oh yeah

Fail opportunity, writing Oh yeah in the spoiler title