接入聊天
This commit is contained in:
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user