public override void AgentAction(float[] vectorAction, string textAction) { float reward = 0.1f; if (Mathf.FloorToInt(vectorAction[0]) == 1) { birdController.ApplyForce(); } if (birdController.isDead) { reward = -10f; Done(); } else { if (GameController.instance.score) { GameController.instance.score = false; reward = 1f; } } AddReward(reward); }