This commit is contained in:
Mikhail 2023-06-27 01:21:52 +08:00
parent f7a0495c87
commit f3b7841ffe

View File

@ -20,7 +20,7 @@ namespace DCFApixels.DragonECS
isHasHandler = targetType.GetInterfaces().Contains(typeof(IEcsWorldComponent<>).MakeGenericType(targetType));
if (isHasHandler)
{
instance = (IEcsWorldComponent<T>)Activator.CreateInstance(typeof(ComponentResetHandler<>).MakeGenericType(targetType));
instance = (IEcsWorldComponent<T>)Activator.CreateInstance(typeof(WorldComponentHandler<>).MakeGenericType(targetType));
}
else
{