Skip to content

Commit 9be60f4

Browse files
authored
Merge pull request #117 from code-lime/main
fix loading abstract `Script` class
2 parents b221294 + 5026331 commit 9be60f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ECS/Base/AssemblyLoader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Ullrich Praetz - https://github.com/friflo. All rights reserved.
1+
// Copyright (c) Ullrich Praetz - https://github.com/friflo. All rights reserved.
22
// See LICENSE file in the project root for full license information.
33

44
using System;
@@ -180,7 +180,7 @@ internal static void GetComponentTypes(Assembly assembly, int assemblyIndex, Lis
180180
continue;
181181
}
182182
}
183-
if (isClass && type.IsSubclassOf(typeof(Script))) {
183+
if (isClass && !type.IsAbstract && type.IsSubclassOf(typeof(Script))) {
184184
componentTypes.Add(new AssemblyType(type, SchemaTypeKind.Script, assemblyIndex));
185185
}
186186
}

0 commit comments

Comments
 (0)