Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 快速比赛等候室弹出一次,与谷歌一起离开,在Unity中玩游戏_Android_Unity3d_Real Time_Google Play Games_Multiplayer - Fatal编程技术网

Android 快速比赛等候室弹出一次,与谷歌一起离开,在Unity中玩游戏

Android 快速比赛等候室弹出一次,与谷歌一起离开,在Unity中玩游戏,android,unity3d,real-time,google-play-games,multiplayer,Android,Unity3d,Real Time,Google Play Games,Multiplayer,我对unity中的Google Play Games插件有一种奇怪的行为 在我添加代码以发送和接收实时消息后,游戏前等待室的UI会弹出一次,然后离开,但什么都没有发生(通常我会匹配其他玩家,游戏会在第二台设备上运行) 在我添加代码之前,一切都进行得很好(屏幕会一直显示,直到找到对手,游戏开始) 我不知道为什么会出现这个问题 以下是我单击以获得快速匹配(随机匹配)时的日志: 为什么这一行会导致UI弹出 (当我没有这行代码时,一切都会恢复正常。但根据的说法,这行代码是发送消息的唯一途径)。由于不知道

我对unity中的Google Play Games插件有一种奇怪的行为

在我添加代码以发送和接收实时消息后,游戏前等待室的UI会弹出一次,然后离开,但什么都没有发生(通常我会匹配其他玩家,游戏会在第二台设备上运行)

在我添加代码之前,一切都进行得很好(屏幕会一直显示,直到找到对手,游戏开始)

我不知道为什么会出现这个问题

以下是我单击以获得快速匹配(随机匹配)时的日志:

为什么这一行会导致UI弹出


(当我没有这行代码时,一切都会恢复正常。但根据的说法,这行代码是发送消息的唯一途径)。

由于不知道您的代码是什么样子,您可能需要检查以下内容:

  • 你应该怎样做的步骤
  • 请注意,您应该只在应用程序中调用
    PlayGamesPlatform.Activate
    一次。拨打此电话不会在屏幕上显示任何内容,也不会以任何方式与用户交互
最后,在解决中的错误时使用的变通方法也可能有所帮助。不要调用
PlayGamesPlatform.Instance.RealTime.ShowWaitingRoomUI()

OnRoomSetupProgress(浮动百分比)

中,感谢您的回复。在
OnRoomSetupProgress(float percent)
中不调用
ShowWaitingRoomUI()
很奇怪,因为在github中,它们是这样编码的。但是我怎样才能在Unity和c中获得
Intent i=Games.RealTimeMultiplayer.getWaitingRoomIntent
I/Unity ( 6389): UnityEngine.Logger:Log(LogType, Object)
I/Unity ( 6389): UnityEngine.Debug:Log(Object)
I/Unity ( 6389): GooglePlayGames.OurUtils.c__AnonStorey15:<>m__D() (at E:\A
pplication\R Hockey\Assets\GooglePlayGames\OurUtils\Logger.cs:59)
I/Unity ( 6389): GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at E
:\Application\R Hockey\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:
135)
I/Unity ( 6389):
I/Unity ( 6389): (Filename: E Line: 0)
I/Unity ( 6389):
I/Unity ( 6389): [Play Games Plugin DLL] 08/01/17 13:19:21 +02:00 DEBUG: Not
leaving room since showing UI
I/Unity ( 6389): UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Obj
ect)
I/Unity ( 6389): UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String
, Object[])
I/Unity ( 6389): UnityEngine.Logger:Log(LogType, Object)
I/Unity ( 6389): UnityEngine.Debug:Log(Object)
I/Unity ( 6389): GooglePlayGames.OurUtils.c__AnonStorey15:<>m__D() (at E:\A
pplication\R Hockey\Assets\GooglePlayGames\OurUtils\Logger.cs:59)
I/Unity ( 6389): GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at E
:\Application\R Hockey\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:
135)
I/Unity ( 6389):
I/Unity ( 6389): (Filename: E Line: 0)
I/Unity ( 6389):
I/Unity ( 6389): [Play Games Plugin DLL] 08/01/17 13:19:21 +02:00 DEBUG: Ente
ring internal callback for RealtimeManager#InternalWaitingRoomUICallback
I/Unity ( 6389): UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Obj
ect)
I/Unity ( 6389): UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String
, Object[])
I/Unity ( 6389): UnityEngine.Logger:Log(LogType, Object)
I/Unity ( 6389): UnityEngine.Debug:Log(Object)
I/Unity ( 6389): GooglePlayGames.OurUtils.c__AnonStorey15:<>m__D() (at E:\A
pplication\R Hockey\Assets\GooglePlayGames\OurUtils\Logger.cs:59)
I/Unity ( 6389): GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at E
:\Application\R Hockey\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:
135)
I/Unity ( 6389):
I/Unity ( 6389): (Filename: E Line: 0)
I/Unity ( 6389):
I/Unity ( 6389): [Play Games Plugin DLL] 08/01/17 13:19:21 +02:00 DEBUG: Show
WaitingRoomUI Response: VALID
I/Unity ( 6389): UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Obj
ect)
I/Unity ( 6389): UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String
, Object[])
I/Unity ( 6389): UnityEngine.Logger:Log(LogType, Object)
I/Unity ( 6389): UnityEngine.Debug:Log(Object)
I/Unity ( 6389): GooglePlayGames.OurUtils.c__AnonStorey15:<>m__D() (at E:\A
pplication\R Hockey\Assets\GooglePlayGames\OurUtils\Logger.cs:59)
I/Unity ( 6389): GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at E
:\Application\R Hockey\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:
135)
I/Unity ( 6389):
I/Unity ( 6389): (Filename: E Line: 0)
I/Unity ( 6389):
I/Unity ( 6389): [Play Games Plugin DLL] 08/01/17 13:19:21 +02:00 DEBUG: Conn
ecting state ShowWaitingRoomUI: room pcount:1 status: AUTO_MATCHING
I/Unity ( 6389): UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Obj
ect)
I/Unity ( 6389): UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String
, Object[])
I/Unity ( 6389): UnityEngine.Logger:Log(LogType, Object)
I/Unity ( 6389): UnityEngine.Debug:Log(Object)
I/Unity ( 6389): GooglePlayGames.OurUtils.c__AnonStorey15:<>m__D() (at E:\A
pplication\R Hockey\Assets\GooglePlayGames\OurUtils\Logger.cs:59)
I/Unity ( 6389): GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at E
:\Application\R Hockey\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:
135)
I/Unity ( 6389):
I/Unity ( 6389): (Filename: E Line: 0)
I/Unity ( 6389):
D/dalvikvm( 3322): GC_CONCURRENT freed 3216K, 31% free 17725K/25376K, paused 6ms
+7ms, total 95ms
W/ActivityManager( 2461): `mDVFSHelper.release()
PlayGamesPlatform.Instance.RealTime.SendMessageToAll (false, bytedata);