两个页面接入完成
This commit is contained in:
@@ -170,7 +170,8 @@ namespace Unity.RenderStreaming
|
||||
{
|
||||
if (_profileSprites == null || _profileSprites.Length == 0) return;
|
||||
_profileImage.sprite = _profileSprites[_profileSpriteIndex];
|
||||
this.GetSystem<IGlobalConfigSystem>().SetConnectionTexture(_profileSprites[_profileSpriteIndex].texture);
|
||||
var avatar = _profileSprites[_profileSpriteIndex].name.Replace("(Clone)", "");
|
||||
this.GetSystem<IGlobalConfigSystem>().SetConnectionTexture(avatar);
|
||||
_profileSpriteIndex = (_profileSpriteIndex + 1) % _profileSprites.Length;
|
||||
}
|
||||
|
||||
@@ -197,7 +198,6 @@ namespace Unity.RenderStreaming
|
||||
this.GetSystem<IGlobalConfigSystem>().SetConnectionId(_meetingId.text);
|
||||
hostConnection.RoomConnectionId = this.GetSystem<IGlobalConfigSystem>().GetConnectionId();
|
||||
this.GetSystem<IGlobalConfigSystem>().SetConnectionName(_meetingNameInput.text);
|
||||
this.GetSystem<IGlobalConfigSystem>().SetConnectionTexture(_profileImage.sprite.texture);
|
||||
if (!SignalingMessageHelper.IsReady())
|
||||
{
|
||||
Debug.LogError("Signaling 未就绪");
|
||||
@@ -210,7 +210,6 @@ namespace Unity.RenderStreaming
|
||||
type = "host-userInfo",
|
||||
data = new
|
||||
{
|
||||
connectionId = hostConnection.RoomConnectionId,
|
||||
id = this.GetSystem<IGlobalConfigSystem>().GetUserId(),
|
||||
name = _meetingNameInput.text,
|
||||
avatar = $"{this.GetSystem<IGlobalConfigSystem>().IP}/images/head/{avatar}.png"
|
||||
|
||||
Reference in New Issue
Block a user