All right, I’m confused. Here’s what I have
void Start()
{
ShowMainMenu("Hello Noah");
}
void ShowMainMenu (string greeting) {
Terminal.ClearScreen();
Terminal.WriteLine(greeting);
Terminal.WriteLine("What would you like to hack into?");
Terminal.WriteLine("Press 1 for the local library");
Terminal.WriteLine("Press 2 for the police station");
Terminal.WriteLine("Enter your selection:");
}
Why do we add “Hello Noah” in the variable (I think) ShowMainMenu? How does that declare that the string greeting is “Hello Noah”? Do the brackets of the first ShowMainMenu (the one in the Start function) and the brackets for the ShowMainMenu function correspond?