public SnapshotPatch Detach()
        {
#pragma warning disable RefCounter001
            var rc = snapshotPatch;
#pragma warning restore RefCounter001
            snapshotPatch = null;
            return(rc);
        }
 public SnapshotPatchGenerator(INetworkObjectSerializerManager serializerManager)
 {
     snapshotPatch          = SnapshotPatch.Allocate();
     this.serializerManager = serializerManager;
 }