1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 22:56:30 +09:00

GetSetMethod instead of SetMethod

This commit is contained in:
Michael Lidgren
2015-09-27 10:55:09 +02:00
parent 6570c44fa0
commit 69618284a6

View File

@@ -93,11 +93,7 @@ namespace Lidgren.Network
value = readMethod.Invoke(this, null);
// set the value
#if UNITY_WEBPLAYER || UNITY_4_5
var setMethod = fi.GetSetMethod();
#else
var setMethod = fi.SetMethod;
#endif
if (setMethod != null)
setMethod.Invoke(target, new object[] { value });
}