JoinRoom 和 OpJoinRoom 有什么区别?

What is the difference between JoinRoom and OpJoinRoom?

Photon PUN2 有一堆 API,如 'JoinRoom'、'JoinLobby' 等。还有一些以 'Op' 为前缀的,如 'OpJoinRoom' 和'OpJoinLobby'。我在文档中看不到有什么区别。例如这里:https://doc-api.photonengine.com/en/pun/v2/class_photon_1_1_realtime_1_1_load_balancing_client.html#a0b09d2933f50f7f956f7f3a2b56664c1 我看到它在示例中使用,没有解释。例如这里:https://doc.photonengine.com/en/server/current/reference/calling-operations

这几组函数有什么区别?

据我所知,这只是 Photon 架构中不同 API 级别的问题。

JoinRoomPhotonNetworking 的成员,它是 Photon.Pun 的一部分,代表“Photon Unity Networking” -> 这是构建在核心之上的 Unity 特定层光子实时引擎。

OpJoinRoom 是对底层 NetworkBalancingClient 的直接访问,它是 Photon.Realtime 的一部分,并且据我所知 JoinRoom 将在某个时候调用。

所以有点高低的可比性API.