mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
add comment
This commit is contained in:
parent
a71ecdba4a
commit
aafe387899
@ -449,6 +449,7 @@ void DeserializeField(FieldDefinition syncVar, ILProcessor serWorker, MethodDefi
|
||||
return;
|
||||
}
|
||||
|
||||
// [SyncVar] GameObject/NetworkIdentity?
|
||||
if (syncVar.FieldType.FullName == Weaver.gameObjectType.FullName ||
|
||||
syncVar.FieldType.FullName == Weaver.NetworkIdentityType.FullName)
|
||||
{
|
||||
@ -487,6 +488,7 @@ void DeserializeField(FieldDefinition syncVar, ILProcessor serWorker, MethodDefi
|
||||
serWorker.Append(serWorker.Create(OpCodes.Ldloc, tmpValue));
|
||||
serWorker.Append(serWorker.Create(OpCodes.Stfld, netIdField));
|
||||
}
|
||||
// [SyncVar] int/float/struct/etc.?
|
||||
else
|
||||
{
|
||||
MethodReference readFunc = Readers.GetReadFunc(syncVar.FieldType);
|
||||
|
Loading…
Reference in New Issue
Block a user