12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- using XRTool.Util;
- public class ShowUserMsg : UnitySingleton<ShowUserMsg>
- {
- public GameObject AllUserView;
- public Button showAllUserViewBtn;
-
- public Text tName;
- public RawImage mViewTexture;
- public SysEnterManager sysEenter;
- public CustomPeer cPeer;
- // Start is called before the first frame update
- void Start()
- {
- showAllUserViewBtn.onClick.AddListener(OnClicKShowAllUser);
- }
- private void OnClicKShowAllUser()
- {
- AllUserView.SetActive(true);
- }
- public void Init(CustomPeer customPeer)
- {
- Debug.Log("InitTouxiang");
- sysEenter.gameObject.SetActive(true);
- cPeer = customPeer;
- sysEenter.cPeer = cPeer;
- tName.text = cPeer.name;
- AgoraVideoAudioManager.Instance.AddListShowView(cPeer.peerId, RoomMainForms.Instance.bigView);
- //cPeer.isAudio = true;
- //cPeer.isVideo = true;
- //if (!cPeer.isSn)
- //{
- // if (!string.IsNullOrEmpty(cPeer.avater))
- // {
- // NetWorkHeaders.Instance.getNetTexture(cPeer.avater, null, (Texture tex) =>
- // {
- // mViewTexture.texture = tex;
- // });
- // }
- // else
- // {
- // if (UserInfo.defaulttextIcon != null)
- // {
- // mViewTexture.texture = UserInfo.defaulttextIcon;
- // }
- // }
- //}
- //else
- //{
- // NetWorkHeaders.GetUserAvater((aData) =>
- // {
- // for (int j = 0; j < aData["data"]["sn"].Count; j++)
- // {
- // NetWorkHeaders.Instance.getNetTexture(aData["data"]["sn"][j].ToString(), null, (Texture tex) =>
- // {
- // mViewTexture.texture = tex;
- // });
- // }
- // });
- //}
- }
- }
|