Closed yessGlory17 closed 4 years ago
Hello @yessGlory17 ,
Please follow the Getting Started documentation on our site: https://doc.photonengine.com/en-us/bolt/current/demos-and-tutorials/bolt-basics/bolt-102-getting-started. It shows the basics of how to start using Bolt.
In order to join a session, you need to use the BoltMatchmaking
API, more specifically the BoltMatchmaking.JoinSession(photonSession)
method.
Have a nice day.
Sir, this is not work!
Hello @yessGlory17 ,
Please, follow the Getting Started tutorial: https://doc.photonengine.com/en-us/bolt/current/demos-and-tutorials/bolt-basics/bolt-102-getting-started
Also, the method can receive a UdpSession
directly (BoltMatchmaking.JoinSession(photonSession);
).
The param you are passing (photonSession.Id
) is a Unique GUID created randomly for each session, and it does not represent the Session Name.
There is a pointless type mismatch problem here. public override void SessionListUpdated(Map<Guid, UdpSession> sessionList) { foreach(var session in sessionList) {
When I try to fix the type mismatch, it does not establish the correct connection while working this time.
public override void SessionListUpdated(Map<Guid, UdpSession> sessionList) { foreach(var session in sessionList) {