Version: 5.6
public void OnConnected (Networking.NetworkConnection conn);

파라미터

conn The new connection object.

설명

This virtual function can be overridden to perform custom functionality for new network connections.

By default OnConnected just invokes a connect event on the new connection.

public virtual void OnConnected(NetworkConnection conn)
{
    conn.InvokeHandlerNoData(MsgType.Connect);
}