Hi All,
I have a question I am struggling with. I am sure the solution is very simple, but I am not seeing it. Basically, I would like to set up Terminal Hacker to ask for a User Name, and then pass that user name to the rest of the game so that it always shows. I’ve set up a Void with the information request, but I can’t seem to store the input in my declared string, nor get the game to move onto the next menu. My code is as follows:
void Start()
{
CaptureUserName(greeting);
}
void CaptureUserName(string greeting)
{
CurrentScreen = Screen.Name;
Terminal.WriteLine("Hello! Welcome to the Dashboard.");
Terminal.WriteLine("Please enter your name:");
}
//void Update()
//{
// int index = Random.Range(0, level1Passwords.Length);
// print(index);
//}
void ShowMainMenu()
{
CurrentScreen = Screen.MainMenu;
Terminal.ClearScreen();
Terminal.WriteLine("Hello, " + greeting);
Terminal.WriteLine("Welcome to the Dark Web");
Terminal.WriteLine("Choose which system to bring down!");
Terminal.WriteLine("1 - " + LocalElementarySchool);
Terminal.WriteLine("2 - " + YourCityHall);
Terminal.WriteLine("3 - " + TheFederalReserve);
Terminal.WriteLine("Enter the line number you want to hack");
}
Any help would be greatly appreciated.