using System.Collections; 
 | 
using System.Collections.Generic; 
 | 
using UnityEngine; 
 | 
using EnhancedUI.EnhancedScroller; 
 | 
  
 | 
    public class ChatExtraOneCell : ScrollerUI 
 | 
    { 
 | 
        [SerializeField] RichText chatText; 
 | 
  
 | 
        public override void Refresh(CellView cell) 
 | 
        { 
 | 
            ChatData _data = ChatCenter.Instance.GetChatData(ChatManager.Instance.presentChatType, cell.index); 
 | 
            if (_data == null) 
 | 
            { 
 | 
                return; 
 | 
            } 
 | 
            if (_data.infoList != null) 
 | 
            { 
 | 
                chatText.SetExtenalData(_data.infoList); 
 | 
            } 
 | 
            chatText.text = _data.content; 
 | 
            switch (_data.detailType) 
 | 
            { 
 | 
                case ChatInfoType.FairyQuestion: 
 | 
                    chatText.alignment = TextAnchor.MiddleLeft; 
 | 
                    break; 
 | 
                default: 
 | 
                    chatText.alignment = TextAnchor.MiddleCenter; 
 | 
                    break; 
 | 
            } 
 | 
        } 
 | 
    } 
 |