I wanted to make sure I understood why Ben used “level1Password.Length” as the other parameter. I assumed that this is so you could change the number of level 1 passwords and not have to change a hardcoded number. Is this a correct assumption?
Thanks,
Trey
void StartGame()
{
currentScreen = Screen.Password;
Terminal.ClearScreen();
switch (level)
{
case 1:
int index = Random.Range(0, level1Passwords.Length);
password = level1Passwords[0];
break;