Пример #1
0
        public void Activate(string label)
        {
            if (m_LabelDictionary.ContainsKey(label))
            {
                // If no label is currently active, activate the prompt.
                if (GetActiveLabelsCount() == 0)
                {
                    m_Text.text = label;

                    StartScale(m_ActivateCurve, m_ActivateSpan);
                    m_PromptHandler.Activate(PromptPlacementHandler.PromptType.InputPrompt);
                }

                m_LabelDictionary[label].Active = true;
            }
        }
Пример #2
0
        public void Activate(int id)
        {
            var speechInfo = m_Speeches.FirstOrDefault(entry => entry.Id == id);

            if (speechInfo != null)
            {
                speechInfo.Active = true;

                if (GetActiveSpeechCount() == 1)
                {
                    m_CurrentSpeech          = speechInfo;
                    m_CurrentSpeechTextIndex = 0;

                    StartActivate();
                    m_PromptHandler.Activate(PromptPlacementHandler.PromptType.SpeechBubble);
                }
            }
        }