接入聊天

This commit is contained in:
2026-05-22 10:59:18 +08:00
parent 369783939b
commit 6f17a740e8
11 changed files with 610 additions and 984 deletions

View File

@@ -10,6 +10,7 @@ namespace Script
{
public class MeetingInfoList : IController
{
private MainPanel _mainPanel;
public GameObject PanelGo;
/// <summary>
@@ -28,9 +29,10 @@ namespace Script
private GameObjectPool _objectPool;
public void Initialize(GameObject panelGo)
public void Initialize(GameObject panelGo, MainPanel mainPanel)
{
PanelGo = panelGo;
_mainPanel = mainPanel;
_contactEntryPrefab = Resources.Load<GameObject>("ParticipantEntry");
_content = panelGo.transform.Find("MeetingGrid/Viewport/Content");
_meetingNum = panelGo.transform.Find("MeetingNum/Num").GetComponent<Text>();
@@ -103,6 +105,8 @@ namespace Script
$"/signaling/users?connectionId={this.GetSystem<IGlobalConfigSystem>().GetConnectionId()}");
if (response != null && response.totalCount > 0)
{
this.GetSystem<IGlobalConfigSystem>().SetUserCount(response.totalCount);
_mainPanel.OnUsersChangedEvnent?.Invoke(response.users);
_meetingNum.text = response.totalCount.ToString();
for (var i = 0; i < response.totalCount; i++)
{