Strange Activity with Number Wizard

I suppose this is not much of a problem, but I still want to know what’s up.

So everytime I hit enter (saying “I won!”) in Unity, it of course prints " I won" in the console, but along with it, it also prints “Higher or Lower than (last number I said yes to)” along with "Up = higher, down = lower, return = equal). In the lecture video, the only thing that prints when he hits enter is “I won!”

Like I said, this is not much of an issue, but I still like to know the problem.

Pics:

When I begin the game:

When I press down or up (in this case up):

When I press you won, which prints two other things I don’t want.

And a picture of my code (starting from StartGame):

EDIT: Please ignore all of this, because I watched the next lexture and under “else if (Input.GetKeyDown(KeyCode.Return)){” line, he added StartGame (I actually inputted NextGuess). So there’s no problem, just accidentally got a bit ahead. Sorry!

Privacy & Terms