using System.Collections; using System.Collections.Generic; using UnityEngine; public class ConnectManager : MonoBehaviour { public List peerList; public BaseList bl; public static ConnectManager Instance; public Game3DInputField nameText; void Start() { Instance = this; nameText.text = PlayerPrefs.GetString("name"); peerList = new List(); bl.UpdateConfigs(peerList); } // Update is called once per frame void Update() { } public void AddPeer(SCRtcPeer sCRtcPeer) { /* sCRtcPeer.isChoose = false; peerList.Add(sCRtcPeer); if (peerList[0] == sCRtcPeer) { sCRtcPeer.isChoose = true; } Debug.Log("AddPeer" + 777); bl.UpdateConfigs(peerList); bl.CurrentPage = bl.SumPage; bl.Refresh();*/ } public void RemovePeer(SCRtcPeer sCRtcPeer) { /* sCRtcPeer.isChoose = false; peerList.Remove(sCRtcPeer); Debug.Log("Remove" + 333); bl.UpdateConfigs(peerList); bl.CurrentPage = bl.SumPage; bl.Refresh();*/ } }