mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix(NetworkServer): Suppress obsolete warnings
This commit is contained in:
parent
55cb34e965
commit
f70d7619f2
@ -191,7 +191,9 @@ static void Initialize()
|
||||
static void AddTransportHandlers()
|
||||
{
|
||||
// += so that other systems can also hook into it (i.e. statistics)
|
||||
#pragma warning disable CS0618 // Type or member is obsolete
|
||||
Transport.active.OnServerConnected += OnTransportConnected;
|
||||
#pragma warning restore CS0618 // Type or member is obsolete
|
||||
Transport.active.OnServerConnectedWithAddress += OnTransportConnectedWithAddress;
|
||||
Transport.active.OnServerDataReceived += OnTransportData;
|
||||
Transport.active.OnServerDisconnected += OnTransportDisconnected;
|
||||
@ -264,7 +266,9 @@ public static void Shutdown()
|
||||
static void RemoveTransportHandlers()
|
||||
{
|
||||
// -= so that other systems can also hook into it (i.e. statistics)
|
||||
#pragma warning disable CS0618 // Type or member is obsolete
|
||||
Transport.active.OnServerConnected -= OnTransportConnected;
|
||||
#pragma warning restore CS0618 // Type or member is obsolete
|
||||
Transport.active.OnServerConnectedWithAddress -= OnTransportConnectedWithAddress;
|
||||
Transport.active.OnServerDataReceived -= OnTransportData;
|
||||
Transport.active.OnServerDisconnected -= OnTransportDisconnected;
|
||||
|
Loading…
Reference in New Issue
Block a user