public void SpawnObject()
    {
        if (count >= MAX_SPAWNED_OBJECTS_BEFORE_END_EPISODE)
        {
            jumper.EndEpisode();
            return;
        }
        int        randomNumber = Random.Range(0, 2);
        GameObject prefab;
        float      yPos = 0;

        if (randomNumber == 0)
        {
            prefab = obstaclePrefab.gameObject;
        }
        else
        {
            prefab = coinPrefab.gameObject;
            yPos   = 0.54f;
        }
        GameObject movingObject = Instantiate(prefab, new Vector3(objects.transform.position.x, objects.transform.position.y + yPos, objects.transform.position.z), Quaternion.identity);

        movingObject.transform.SetParent(objects.transform);
        count++;
    }
 private void FixedUpdate()
 {
     score.text = $"{jumper.GetCumulativeReward().ToString("f2")} - {obstakel.count}";
     if (obstakel.count > 10)
     {
         obstakel.count = 0;
         jumper.EndEpisode();
     }
 }