Пример #1
0
 private void UpdateChatText()
 {
     if (string.IsNullOrEmpty(owner.GetChat()) == false &&
         m_ChatQueue.Contains(owner.GetChat()) == false)
     {
         this.ShowChat(owner.GetChat());
     }
     if (m_ChatQueue.Count != m_ChatTextIndex)
     {
         m_ChatTextCountdown.Reset();
         m_UIObjChatText.text = this.FormatChatText(m_ChatQueue[m_ChatTextIndex]);
         m_ChatTextIndex++;
     }
     else if (m_ChatTextCountdown.UpdateTime(Time.deltaTime))
     {
         m_UIObjChatText.text = string.Empty;
     }
 }
Пример #2
0
 private void UpdateEmotionImage()
 {
     if (string.IsNullOrEmpty(owner.GetEmotion()) == false &&
         m_EmotionQueue.Contains(owner.GetEmotion()) == false)
     {
         this.ShowEmotion(owner.GetEmotion());
     }
     if (m_EmotionQueue.Count != m_EmotionIndex)
     {
         m_EmotionCountdown.Reset();
         m_UIEmotionImage.gameObject.SetActive(true);
         m_UIEmotionImage.sprite = CUtil.FindResourceSprite(this.FormatEmotionText(m_EmotionQueue[m_EmotionIndex]));
         m_EmotionIndex++;
     }
     else if (m_EmotionCountdown.UpdateTime(Time.deltaTime))
     {
         m_UIEmotionImage.gameObject.SetActive(false);
     }
 }