public void Awake() { _net = FindObjectOfType <PureP2PCommsNetwork>(); _net.InitializeAsServer(_sessionId); _comms = FindObjectOfType <DissonanceComms>(); }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.S)) { // sessionId= p2p.SessionId; p2p.InitializeAsServer(sessionId); } if (Input.GetKeyDown(KeyCode.C)) { // sessionId = p2p.SessionId; p2p.InitializeAsClient(sessionId); } }