private void Start() { ipAddress.text = "127.0.0.1"; portNumber.text = "15937"; for (int i = 0; i < ToggledButtons.Length; ++i) { Button btn = ToggledButtons[i].GetComponent <Button>(); if (btn != null) { _uiButtons.Add(btn); } } if (!useTCP) { // Do any firewall opening requests on the operating system NetWorker.PingForFirewall(); } if (useMainThreadManagerForRPCs) { Rpc.MainThreadRunner = MainThreadManager.Instance; } if (getLocalNetworkConnections) { NetWorker.SetupLocalUdpListings(); } }