少年修仙传客户端代码仓库
client_linchunjie
2018-11-06 3fddd64a7e9a1270bf892f7c5fd019c217c7c7c3
System/Chat/ChatBubbleBehaviour.cs
@@ -1,5 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using TableConfig;
using UnityEngine;
using UnityEngine.UI;
@@ -99,6 +100,15 @@
                m_BubbleIcon.SetSprite(iconKey);
                m_Flip.flipHorizontal = requireFlip;
                m_Target.color = bubble.color;
                var config = Config.Instance.Get<ChatBubbleBoxConfig>(bubbleId);
                var position = rect.anchoredPosition;
                position.y = -config.top;
                if (rect.anchoredPosition != position)
                {
                    rect.anchoredPosition = position;
                }
                Refresh();
            }
        }