You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-19 00:26:30 +09:00
GetSetMethod instead of SetMethod
This commit is contained in:
@@ -93,11 +93,7 @@ namespace Lidgren.Network
|
|||||||
value = readMethod.Invoke(this, null);
|
value = readMethod.Invoke(this, null);
|
||||||
|
|
||||||
// set the value
|
// set the value
|
||||||
#if UNITY_WEBPLAYER || UNITY_4_5
|
|
||||||
var setMethod = fi.GetSetMethod();
|
var setMethod = fi.GetSetMethod();
|
||||||
#else
|
|
||||||
var setMethod = fi.SetMethod;
|
|
||||||
#endif
|
|
||||||
if (setMethod != null)
|
if (setMethod != null)
|
||||||
setMethod.Invoke(target, new object[] { value });
|
setMethod.Invoke(target, new object[] { value });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user