mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkBehaviourInspector.Init: simplify getfields
This commit is contained in:
parent
a57e23ea60
commit
21ef026148
@ -69,7 +69,7 @@ void Init(MonoScript script)
|
||||
}
|
||||
|
||||
int numSyncLists = 0;
|
||||
foreach (FieldInfo field in serializedObject.targetObject.GetType().GetFields())
|
||||
foreach (FieldInfo field in scriptClass.GetFields())
|
||||
{
|
||||
if (field.FieldType.BaseType != null && field.FieldType.BaseType.Name.Contains("SyncList"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user