File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
com.unity.multiplayer.mlapi/Editor/CodeGen Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public override ILPostProcessResult Process(ICompiledAssembly compiledAssembly)
54
54
if ( ImportReferences ( mainModule ) )
55
55
{
56
56
// process `NetworkBehaviour` types
57
- mainModule . Types
57
+ mainModule . GetTypes ( )
58
58
. Where ( t => t . IsSubclassOf ( CodeGenHelpers . NetworkBehaviour_FullName ) )
59
59
. ToList ( )
60
60
. ForEach ( ProcessNetworkBehaviour ) ;
@@ -583,12 +583,6 @@ private void ProcessNetworkBehaviour(TypeDefinition typeDefinition)
583
583
instructions . Reverse ( ) ;
584
584
instructions . ForEach ( instruction => processor . Body . Instructions . Insert ( 0 , instruction ) ) ;
585
585
}
586
-
587
- // process nested `NetworkBehaviour` types
588
- typeDefinition . NestedTypes
589
- . Where ( t => t . IsSubclassOf ( CodeGenHelpers . NetworkBehaviour_FullName ) )
590
- . ToList ( )
591
- . ForEach ( ProcessNetworkBehaviour ) ;
592
586
}
593
587
594
588
private CustomAttribute CheckAndGetRPCAttribute ( MethodDefinition methodDefinition )
You can’t perform that action at this time.
0 commit comments