lcy
2025-12-03 b9a6e7e896b451e9c915e782a1789b2afe079cc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Collections;
using UnityEngine;
using UnityEngine.UI;
 
public class ChatDateCell : MonoBehaviour
{
    [SerializeField] Text txtDate;
    ChatManager manager { get { return ChatManager.Instance; } }
    public void Refresh(CellView cell)
    {
        if (!manager.TryGetChatData(ChatManager.Instance.nowChatChannel, cell.index, out TalkData data))
            return;
        txtDate.text = data.Content;
    }
 
    public float GetHeight(string content, ArrayList list)
    {
        return 30;
    }
}