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

OnClientConnect() public method

Called on the client when connected to a server.

public OnClientConnect ( NetworkConnection conn ) : void
conn NetworkConnection Connection to the server.
return void
        public virtual void OnClientConnect(NetworkConnection conn)
        {
            if (!this.clientLoadedScene)
            {
                ClientScene.Ready(conn);
                if (this.m_AutoCreatePlayer)
                {
                    ClientScene.AddPlayer(0);
                }
            }
        }