Hey all,
I've run though the example scenes, documentation and 'getting started' page, but i'm still having a bit of trouble understanding how to get things setup or how things are SUPPOSED to be set up.
I've been working on a multiplayer game for a while but using Unity's built-in networking.
The way I started a server/connected to a game was pretty simple :
To create a server
- Initialize server
- OnServerInitialized - Load first level
- OnPlayerConnected - Send netLoadLevel RPC with current levelName
To connect to a server
- Connect(serverIP)
- Waits for server to send current level
- Loads level and receives current gameState
But now switching to TNet, I find it confusing....
I can start a server, and connect to it, just like the way it's shown in the ExampleMenu.
But then the channels throw me off. I previously had the server 'tell' newly joined clients which level to load, but with TNet, when you join a channel you need to specify the level to load. And no communication can take place before you join a channel.
I think i'm getting completley the wrong idea here >< How does the client know which level to load (the level the server is currently on)