Пример #1
0
    public void Submit()
    {
        ReadText();

        if (CommandDictionary.TryGetValue(text.ToLower(), out toSend))
        {
            if (screenManager.levelCounter < 8)
            {
                hero.ExecuteCommand(toSend);
            }
        }
        else
        {
            if (text.ToLower() == "help")
            {
                StoryText.text = GameText.Instance.GetHelp();
            }
            else if (text.ToLower() == "story")
            {
                screenManager.UpdateStory();
            }
            else if (text.ToLower() == "kill")
            {
                screenManager.ShowEnd();
            }
        }

        CleanField();
    }