Null-conditional

This commit is contained in:
Paul Pacheco 2019-01-30 18:40:21 -06:00
parent 07e3d48dde
commit b816045c06

View File

@ -332,14 +332,10 @@ public void OnDeserializeDelta(NetworkReader reader)
if (apply)
{
SyncListChanged listChanged = Callback;
if (listChanged != null)
{
listChanged(operation, index, item);
}
Callback?.Invoke(operation, index, item);
}
// we just skipped this change
if (!apply)
else
{
changesAhead--;
}