1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class ConnectManager : MonoBehaviour
- {
- public List<BaseConfig> peerList;
- public BaseList bl;
- public static ConnectManager Instance;
- public Game3DInputField nameText;
-
- void Start()
- {
- Instance = this;
- nameText.text = PlayerPrefs.GetString("name");
- peerList = new List<BaseConfig>();
- 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();*/
- }
- }
|