예제 #1
0
 public void OnClickedEntry(GameObject p_sender)
 {
     if (m_enabled && IngameController.Instance.Overlay.BackAlpha == 0f)
     {
         if (m_isBackButton)
         {
             if (ClickedBackButton != null)
             {
                 ClickedBackButton(this, EventArgs.Empty);
             }
         }
         else if (m_isNextPageButton)
         {
             if (ClickedNextPageButton != null)
             {
                 ClickedNextPageButton(this, EventArgs.Empty);
             }
         }
         else if (m_isFeatureButton)
         {
             m_featureFunction.Trigger(LegacyLogic.Instance.ConversationManager);
         }
         else if (m_entry != null)
         {
             if (m_entry.Text != null && !String.IsNullOrEmpty(m_entry.Text.VoiceID))
             {
                 PlayVoiceOver(m_entry.Text.VoiceID);
             }
             m_entry.ExecuteFunction(LegacyLogic.Instance.ConversationManager);
         }
     }
 }