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