Public override void SessionListUpdated(Map sessionList)ĭebug.LogFormat("Session list updated: total sessions", sessionList.Count) If(GUILayout.Button("Start Client", GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(true))) If(GUILayout.Button("Start Server", GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(true))) GUILayout.BeginArea(new Rect(10, 10, Screen.width - 20, Screen.height - 20)) Here's the code that starts both the server and the client (it's similiar to the Getting Started tutorial one): using System The message Ping starts appearing on the server Log when the client tries to connect, except sometimes that it gets stuck at Attached ] (Token: NULL) at the client (PlatformState is a state from a Prefab the client instantiates after loading the scene, the client is supposed to click on parts of the screen to create platforms). In the best case, the connection takes a lot of time (the timeout is 100000 and the connection timeout is 5000 with 20 connect attempts), but most of the times it doesn't even connect. When connecting between two games in the same computer it works fine, but if I try to connect two different devices, be it a PC to Android connection or PC to PC, I start having problems. So, I've been trying to make a game using Photon Bolt to create a connection between a PC and an Android device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |