public void Start() { (host.IP.placeholder as Text).text = Format.localIPAddress(); localDiscoveryClient = Instantiate(host.localDiscoveryPrefab).GetComponent <NetworkDiscovery>(); localDiscoveryServer = Instantiate(host.localDiscoveryPrefab).GetComponent <NetworkDiscovery>(); localDiscoveryClient.Initialize(); localDiscoveryClient.StartAsClient(); localDiscoveryClient.Subscribe <LocalNetworkDiscoveryMessage>(this); localDiscoveryServer.Initialize(); localDiscoveryServer.StartAsServer(); }