public void StartNewMultiplayerGame(IPEndPoint EndPoint, int joinRequestId, Client.ConnectToServerFailedDelegate onConnectToServerFailed = null) { _GameType = E_GameType.Multiplayer; Instantiate(Client); Client.Instance.ConnectToServer(EndPoint, joinRequestId, onConnectToServerFailed); }
public void StartNewMultiplayerGame(uLink.HostData hostData, int joinRequestId, Client.ConnectToServerFailedDelegate onConnectToServerFailed = null) { _GameType = E_GameType.Multiplayer; Instantiate(Client); Client.Instance.ConnectToServer(hostData, joinRequestId, onConnectToServerFailed); }