mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Fix bullets in Multiplex doc
This commit is contained in:
parent
f7589266e1
commit
b9c5aefcc1
@ -6,13 +6,13 @@ A prime use case for the MultiplexTransport is having a server that listens to b
|
|||||||
|
|
||||||
To use the MultiplexTransport follow these steps:
|
To use the MultiplexTransport follow these steps:
|
||||||
|
|
||||||
1) Add a gameobject with a NetworkManager to your scene if you have not done so
|
1. Add a gameobject with a NetworkManager to your scene if you have not done so
|
||||||
2) By default, Unity will add TelepathyTransport to your NetworkManager GameObject
|
2. By default, Unity will add TelepathyTransport to your NetworkManager GameObject
|
||||||
3) Add a MultiplexTransport component to the gameobject
|
3. Add a MultiplexTransport component to the gameobject
|
||||||
4) Assign the MultiplexTransport component in your NetworkManager's transport
|
4. Assign the MultiplexTransport component in your NetworkManager's transport
|
||||||
5) Add a WebsocketTransport component to the gameobject
|
5. Add a WebsocketTransport component to the gameobject
|
||||||
6) Add the TelepathyTransport component to the MultiplexTransport as the first transport
|
6. Add the TelepathyTransport component to the MultiplexTransport as the first transport
|
||||||
7) Add the WebsocketTransport component to the MultiplexTransport as the second transport
|
7. Add the WebsocketTransport component to the MultiplexTransport as the second transport
|
||||||
|
|
||||||
Please note that Telepathy and WebsocketTransport cannot listen to the same port. By default Telepathy listens to 7777 and the websocket transport listents to 7778. If you change this configuration, make sure they use different ports.
|
Please note that Telepathy and WebsocketTransport cannot listen to the same port. By default Telepathy listens to 7777 and the websocket transport listents to 7778. If you change this configuration, make sure they use different ports.
|
||||||
|
|
||||||
@ -20,4 +20,4 @@ If you build your game as a webgl game, the TelepathyTransport will be skipped
|
|||||||
|
|
||||||
Here is what the configuration should look like:
|
Here is what the configuration should look like:
|
||||||
|
|
||||||
![Multiplex Example](MultiplexSample.png)
|
![Multiplex Example](MultiplexSample.png)
|
||||||
|
Loading…
Reference in New Issue
Block a user