using System.Collections; using System.Collections.Generic; using LitJson; using UnityEngine; using UnityEngine.UI; public class CustomPeer : SCRtcPeer, BaseConfig { public bool isVideo=true; public bool isAudio=true; public GameObject bigView; public bool isBig; public int Index { get; set; } public GameObject Quad; public delegate void OnChangeTexture(); public OnChangeTexture onChangeTexture; public delegate void OnChangeName(string n); public OnChangeName onChangeName; public delegate void OnChangeInfo(string type, string id); public OnChangeInfo onChangeInfo; public override void setInfo(string type, string id) { base.setInfo(type, id); if (onChangeInfo != null) { onChangeInfo(type, id); } } public override void setName(string n) { Debug.Log("setNamesetNamesetNamesetName"); base.setName(n); if (onChangeName != null) { onChangeName(n); } } public void changeInfo(string info) { if(cIdA==info) { cIdA = ""; } else { cIdV = ""; } } public override void setTexture(JsonData data) { base.setTexture(data); showVideo(data); if (onChangeTexture != null) { onChangeTexture(); } } public override void changeTexture(JsonData data) { base.changeTexture(data); changeVideo(data); } public void changeVideo(JsonData data) { } public void addQuad(GameObject peerQuad) { } public void showVideo(JsonData data) { } public void OnClick() { } public void OnEnter() { } public void OnExit() { } public void OnDown() { } public void OnUp() { } public void Start() { } public void Awake() { } public void Update() { } public void OnDestroy() { } public void Init() { } }