The Cake Is a Lie

First:
void OnUserInput(string input)
    {
        if (input == "меню")
        {
            ShowMainMenu(", пользователь    ");
        }
        else if (input == "valve")
        {
            SecretHi(input);
        }
        else if (currentScreen == Screen.MainMenu)
        {
            RunMainMenu(input);      
        }
        else if (currentScreen == Screen.Password)
        {

            CheckPassword(input);
        }
    }
Second:
void SecretHi(string input)
    {
       
        Terminal.ClearScreen();
        Terminal.WriteLine("Решите анаграмму:");
        Terminal.WriteLine(SecretPassword.Anagram());
        if (input == "The Cake Is a Lie") ←←Сommand fails
        {
            Terminal.WriteLine
            (@"
_!_!_!_!_
|  ||    ||
|  ||   |||
}{{{{}}}{{{
  __||__


            ");
        }

    }

Are you asking a question or what?

1 Like

Reading that code, input == "The Cake Is a Lie" is always false because you only pass input into SecretHi when input == “valve”.
“valve” != “The Cake Is a Lie”.

Is this the cake by the ocean? Use Debug.Log to find out :slight_smile:

Debug.Log("The input string is " + input.ToString());

What do I need to write in order after the player writes The Cake Is a Lie comes out a cake?

What do I need to write in order after the player writes The Cake Is a Lie comes out a cake?

Change Line 10 to

SecretHi("The Cake Is a Lie");

It helps if you chant 'Still Alive" under your beath

1 Like

To change the output, you need to change the input. What does Debug.Log currently output? How are you debugging?