mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Null-conditional
This commit is contained in:
parent
07e3d48dde
commit
b816045c06
@ -332,14 +332,10 @@ public void OnDeserializeDelta(NetworkReader reader)
|
|||||||
|
|
||||||
if (apply)
|
if (apply)
|
||||||
{
|
{
|
||||||
SyncListChanged listChanged = Callback;
|
Callback?.Invoke(operation, index, item);
|
||||||
if (listChanged != null)
|
|
||||||
{
|
|
||||||
listChanged(operation, index, item);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// we just skipped this change
|
// we just skipped this change
|
||||||
if (!apply)
|
else
|
||||||
{
|
{
|
||||||
changesAhead--;
|
changesAhead--;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user