多人游戏崩溃只有iPad

时间:2015-11-30 22:18:16

标签: c# unity3d cross-platform google-play-services multiplayer

我正在使用Unity开发一款多人跨平台游戏。我使用谷歌玩游戏服务。当我安装到iPhone 6一切正常。玩家可以登录并创建一个快速匹配,但当我在iPad 2中尝试它时游戏崩溃。我怎么能弄清楚这一点。我为每个设备提供了2个不同的谷歌帐户,谷歌+启用。 这是我的代码。

private void StartMatchMaking() 
{
    PlayGamesPlatform.Instance.RealTime.CreateQuickGame (minimumOpponents, maximumOpponents, gameVariation, this);
}


public void SignInAndStartMPGame() {

    if (! PlayGamesPlatform.Instance.localUser.authenticated) 
    {
        PlayGamesPlatform.Instance.localUser.Authenticate((bool success) => {
            if (success) 
            {
                Debug.Log ("We're signed in! Welcome " + PlayGamesPlatform.Instance.localUser.userName);
                // We could start our game now
                StartMatchMaking();
            } 
            else 
            {
                Debug.Log ("Oh... we're not signed in.");
            }
        });
    } 
    else
    {
        Debug.Log ("You're already signed in.");
        // We could also start our game now
        StartMatchMaking();
    }
}

控制台消息:

DEBUG:填充用户。 调试:也许完成用户 调试:Auth完成了。诉讼。 DEBUG:调用回调:System.Action`1 [System.Boolean] DEBUG:在游戏线程上调用用户回调 我们已登录!欢迎播放器

DEBUG:进入状态:BeforeRoomCreateStartedState DEBUG:BeforeRoomCreateStartedState.OnStateEntered:默认为no-op。 DEBUG:QuickGame:设置MinPlayersToStart = 1 DEBUG:OnData Callback有addr:27 DEBUG:BeforeRoomCreateStartedState.IsNonPreemptable:默认情况下是preemptable。 DEBUG:进入州:RoomCreationPendingState DEBUG:RoomCreationPendingState.OnStateEntered:默认为无操作。

信息:使用retry.getRetryAuthToken()连接:1 信息:令牌已过期。令人耳目一新。 试图刷新令牌;旧令牌是: VERBOSE:现在开始对主线程的刷新请求。 VERBOSE:等待刷新请求立即返回。 Auth更新了! ... 也许。新令牌是:ya29.PAIpxX-k4s7tN562YGmekCZW3TJ VERBOSE:返回刷新请求。 令牌刷新成功! VERBOSE:不同的令牌!刷新成功! 信息:尝试连接返回的身份验证令牌。

崩溃!

0 个答案:

没有答案