1
This commit is contained in:
@@ -31,8 +31,7 @@ namespace BITKit.Entities
|
||||
entityComponents = GetComponentsInChildren<IEntityComponent>(true).Distinct().ToArray();
|
||||
foreach (var x in entityComponents)
|
||||
{
|
||||
var att = x.GetType().GetCustomAttribute<CustomTypeAttribute>();
|
||||
if (att is not null)
|
||||
foreach (var att in x.GetType().GetCustomAttributes<CustomTypeAttribute>())
|
||||
{
|
||||
genericEvent.Set(att.Type, x);
|
||||
}
|
||||
|
Reference in New Issue
Block a user