File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,12 @@ public static void SetAttributeValues (System.Object target) {
1212 foreach ( var _field in _fields )
1313 if ( System . Attribute . GetCustomAttribute ( _field , typeof ( Injected ) ) != null )
1414 foreach ( var _fieldInterface in _field . FieldType . GetInterfaces ( ) ) {
15- if ( _fieldInterface == typeof ( IService ) )
16- _field . SetValue ( target , Controller . Instance . GetService ( _field . FieldType ) ) ;
17- else if ( _fieldInterface == typeof ( IEntitySystem ) )
15+ if ( _fieldInterface == typeof ( IEntitySystem ) )
1816 _field . SetValue ( target , Controller . Instance . GetSystem ( _field . FieldType ) ) ;
17+ else if ( _fieldInterface == typeof ( IService ) )
18+ _field . SetValue ( target , Controller . Instance . GetService ( _field . FieldType ) ) ;
19+ else if ( _fieldInterface == typeof ( IController ) )
20+ _field . SetValue ( target , Controller . Instance ) ;
1921 }
2022 }
2123 }
You can’t perform that action at this time.
0 commit comments