// Update is called once per frame void Update() { timeCounter += Time.deltaTime; transform.position = jsonReader.getPositionForTime(timeCounter) + offset; }