private void FixedUpdate()
 {
     score.text = $"{jumper.GetCumulativeReward().ToString("f2")} - {obstakel.count}";
     if (obstakel.count > 10)
     {
         obstakel.count = 0;
         jumper.EndEpisode();
     }
 }
    private void FixedUpdate()
    {
        if (jumpIsReady)
        {
            RequestDecision();
        }

        score.text = j.GetCumulativeReward().ToString();
    }
示例#3
0
 // Update is called once per frame
 void FixedUpdate()
 {
     scoreBoard.text = jumperGuy.GetCumulativeReward().ToString("f2");
 }