mirror of
https://github.com/DCFApixels/DragonECS-AutoInjections.git
synced 2025-09-17 12:24:34 +08:00
code cleanup
This commit is contained in:
parent
8daaed75ed
commit
4f71fa9405
@ -9,7 +9,7 @@ namespace DCFApixels.DragonECS
|
||||
private static MethodInfo _declareRunnerMethod = typeof(EcsPipeline).GetMethod(nameof(EcsPipeline.GetRunnerInstance));
|
||||
public static T GetRunnerAuto<T>(this EcsPipeline self) where T : IEcsProcess
|
||||
{
|
||||
if(self.TryGetRunner(out T process))
|
||||
if (self.TryGetRunner(out T process))
|
||||
{
|
||||
return process;
|
||||
}
|
||||
@ -19,7 +19,7 @@ namespace DCFApixels.DragonECS
|
||||
Type runnerType = atr.runnerType;
|
||||
if (type.IsGenericType)
|
||||
{
|
||||
if(runnerType.IsGenericType == false ||
|
||||
if (runnerType.IsGenericType == false ||
|
||||
runnerType.IsGenericTypeDefinition == false)
|
||||
{
|
||||
Throw.UndefinedException();
|
||||
|
@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Security;
|
||||
|
||||
namespace DCFApixels.DragonECS
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user