PUN Classic (v1)、PUN 2 和 Bolt 處於維護模式。 PUN 2 將支援 Unity 2019 至 2022,但不會添加新功能。 當然,您所有的 PUN & Bolt 專案可以用已知性能繼續運行使用。 對於任何即將開始或新的專案:請切換到 Photon Fusion 或 Quantum。

Server & Client Model

Bolt is using what is commonly referred to as the 'Client/Server Model', this means that one computer is considered the Server, everyone else is considered a Client and they connect directly to the Server.
There are a couple of things to note about this.

  1. The server have one BoltConnection object per client. All client connections can be found under BoltNetwork.clients.
    On the clients themselves this will return zero items.
  2. The clients have only one BoltConnection which is the connection to the server.
    This connection can be found at BoltNetwork.server. This property returns null on the server itself.
  3. There is no connection that refers to yourself in any way, they always represents a link to another computer.
  4. There are no direct connections between clients, all data is passed through the server.
Photon Bolt: Server & Client Model
Photon Bolt: Server & Client Model
Back to top