mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
b56b12ff54
commit
02336b41b5
@ -9,8 +9,8 @@ namespace Mirror
|
||||
/// <summary>NetworkServer handles remote connections and has a local connection for a local client.</summary>
|
||||
public static partial class NetworkServer
|
||||
{
|
||||
static bool initialized;
|
||||
public static int maxConnections;
|
||||
static bool initialized;
|
||||
public static int maxConnections;
|
||||
|
||||
/// <summary>Connection to host mode client (if any)</summary>
|
||||
public static NetworkConnectionToClient localConnection { get; private set; }
|
||||
@ -1321,7 +1321,7 @@ static void DestroyObject(NetworkIdentity identity, DestroyMode mode)
|
||||
identity.connectionToClient?.RemoveOwnedObject(identity);
|
||||
|
||||
// send object destroy message to all observers, clear observers
|
||||
SendToObservers(identity, new ObjectDestroyMessage{netId = identity.netId});
|
||||
SendToObservers(identity, new ObjectDestroyMessage {netId = identity.netId});
|
||||
identity.ClearObservers();
|
||||
|
||||
// in host mode, call OnStopClient/OnStopLocalPlayer manually
|
||||
|
Loading…
Reference in New Issue
Block a user