Remove methods for constructor in ReflectionHelper.

This commit is contained in:
2023-04-08 13:36:52 +08:00
parent 2221658e7a
commit 8907dd19b0
6 changed files with 9 additions and 25 deletions

View File

@@ -1,6 +1,7 @@
using Cryville.Common;
using Cryville.Common.Buffers;
using Cryville.Common.Collections.Specialized;
using System;
using System.Collections.Generic;
namespace Cryville.Crtr.Event {
@@ -20,7 +21,7 @@ namespace Cryville.Crtr.Event {
}
protected override MotionCache Construct() {
var result = new MotionCache();
result.Value = (Vector)ReflectionHelper.InvokeEmptyConstructor(_reg.Type);
result.Value = (Vector)Activator.CreateInstance(_reg.Type);
return result;
}
protected override void Reset(MotionCache obj) {