コード例 #1
0
    public void StartNewMultiplayerGame(IPEndPoint EndPoint,
                                        int joinRequestId,
                                        Client.ConnectToServerFailedDelegate onConnectToServerFailed = null)
    {
        _GameType = E_GameType.Multiplayer;

        Instantiate(Client);

        Client.Instance.ConnectToServer(EndPoint, joinRequestId, onConnectToServerFailed);
    }
コード例 #2
0
    public void StartNewMultiplayerGame(uLink.HostData hostData,
                                        int joinRequestId,
                                        Client.ConnectToServerFailedDelegate onConnectToServerFailed = null)
    {
        _GameType = E_GameType.Multiplayer;

        Instantiate(Client);

        Client.Instance.ConnectToServer(hostData, joinRequestId, onConnectToServerFailed);
    }