Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: sunjie on March 24, 2016, 02:33:37 AM

Title: onPlayerJoin & onJoinChannel
Post by: sunjie on March 24, 2016, 02:33:37 AM
We were previously using 2.1.1 version. In this version, I created a room, I entered a channel, I called methods "onPlayerJoin and onJoinChannel", and encountered no problems. However, after I updated up to 3.0.0, I can create a room, I can enter a channel, but I can only call "onJoinChannel". So, can anyone provide some troubleshooting?
Title: Re: onPlayerJoin & onJoinChannel
Post by: ArenMook on March 24, 2016, 03:10:05 AM
In TNet3 OnNetworkXXX calls no longer get broadcast, you have to subscribe to them as explained in the tutorials -- TNManager.onPlayerJoin += OnPlayerJoin;