UnityEngine.Networking.NetworkManager.OnMatchJoined C# (CSharp) Method

OnMatchJoined() public method

Callback that happens when a NetworkMatch.JoinMatch request has been processed on the server.

public OnMatchJoined ( bool success, string extendedInfo, MatchInfo matchInfo ) : void
success bool Indicates if the request succeeded.
extendedInfo string A text description for the error if success is false.
matchInfo UnityEngine.Networking.Match.MatchInfo The info for the newly joined match.
return void
        public virtual void OnMatchJoined(bool success, string extendedInfo, MatchInfo matchInfo)
        {
            if (LogFilter.logDebug)
            {
                object[] args = new object[] { success, extendedInfo, matchInfo };
                Debug.LogFormat("NetworkManager OnMatchJoined Success:{0}, ExtendedInfo:{1}, matchInfo:{2}", args);
            }
            if (success)
            {
                this.StartClient(matchInfo);
            }
        }