public void Show()
    {
        if (canShow && condition.IsMet())
        {
            if (hasShowEvent)
            {
                showEvent.RemoveListener(Show, true);
            }

            hideEvent.AddListener(Hide);
            tutorialArrowInterface.Show(position, rotation);
            messageInterface.Enqueue(message);
            canShow = false;
        }
    }
Ejemplo n.º 2
0
    public void Show()
    {
        bool messagesShown = false;

        foreach (StoryElement messageElement in messageElements)
        {
            if (messageElement.condition.IsMet())
            {
                foreach (Message message in messageElement.messages)
                {
                    messageInterface.Enqueue(message);
                    messagesShown = true;
                }
            }
        }

        if (!messagesShown)
        {
            ShowTutorial();
        }
    }