mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
syntax
This commit is contained in:
parent
1b562c7b6a
commit
61295a5120
@ -900,7 +900,10 @@ internal static void ShowForConnection(NetworkIdentity identity, NetworkConnecti
|
|||||||
|
|
||||||
internal static void HideForConnection(NetworkIdentity identity, NetworkConnection conn)
|
internal static void HideForConnection(NetworkIdentity identity, NetworkConnection conn)
|
||||||
{
|
{
|
||||||
ObjectHideMessage msg = new ObjectHideMessage {netId = identity.netId};
|
ObjectHideMessage msg = new ObjectHideMessage
|
||||||
|
{
|
||||||
|
netId = identity.netId
|
||||||
|
};
|
||||||
conn.Send(msg);
|
conn.Send(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1321,7 +1324,10 @@ static void DestroyObject(NetworkIdentity identity, DestroyMode mode)
|
|||||||
identity.connectionToClient?.RemoveOwnedObject(identity);
|
identity.connectionToClient?.RemoveOwnedObject(identity);
|
||||||
|
|
||||||
// send object destroy message to all observers, clear observers
|
// 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();
|
identity.ClearObservers();
|
||||||
|
|
||||||
// in host mode, call OnStopClient/OnStopLocalPlayer manually
|
// in host mode, call OnStopClient/OnStopLocalPlayer manually
|
||||||
|
Loading…
Reference in New Issue
Block a user