android - Unity network manager online matchmaking -


the code below how can host or join game using unity networking system. see in code below there 2 input fields take "localhost" , "7777".

public class customnetworkmanager : networkmanager {      [serializefield] inputfield inputfield_ip;     [serializefield] inputfield inputfield_port;      public void hostgame()     {         singleton.networkport = inputfield_port.text;         singleton.starthost();     }       public void joingame()     {         singleton.networkport = inputfield_port.text;         singleton.networkaddress = inputfield_ip.text;         singleton.startclient();     }   } 

but want create game player can host game ip port shown (for example) in ui text , send ip , port other players , join game. still new networking , can tell me please done , there way join host connected internet not on same network? note: talking android devices.

https://www.assetstore.unity3d.com/en/#!/content/41836 can use asset , there's tab named manual connection, exact thing.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -