mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
comment
This commit is contained in:
parent
3afad21de9
commit
58b434ccff
@ -205,8 +205,9 @@ public static void ConnectLocalServer()
|
||||
|
||||
// disconnect //////////////////////////////////////////////////////////
|
||||
/// <summary>Disconnect from server.</summary>
|
||||
// Simply call NetworkConnection.Disconnect -> Transport.Disconnect.
|
||||
// Cleanup happens in OnTransportDisconnected!
|
||||
// IMPORTANT: calling Disconnect() asks Transport to Disconnect and then
|
||||
// Disconnects later in OnTransportDisconnected.
|
||||
// => it does NOT fully disconnect IMMEDIATELY!
|
||||
public static void Disconnect()
|
||||
{
|
||||
connection?.Disconnect();
|
||||
|
Loading…
Reference in New Issue
Block a user