[SOLVED] Hacker.cs strange behavior with additional option

Hello.

I am playing with the ShowMainMenu code and ran into something strange. When I give the player three options, everything behaves as expected. When I add a fourth option, a space appears between my second and third choices, as if I had entered Terminal.WriteLine("")

Am I missing something obvious here?

Here are screenshots from Unity and Visual Studio:



1 Like

That is so weird did you figure it out?

1 Like

It’s still a mystery to me. I will have to revisit this and see if I can figure it out.

Someone led me to the answer on the course Q&A.

Apparently, line two was one character too long in the second version. I removed the period and it now behaves as expected.

Privacy & Terms