mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-18 01:54:35 +08:00
Add extension methods for EcsSystems
This commit is contained in:
parent
27ab409a61
commit
a252a2458b
@ -12,4 +12,12 @@
|
|||||||
foreach (var item in targets) item.FixedRun(systems);
|
foreach (var item in targets) item.FixedRun(systems);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class IEcsFixedRunSystemExtensions
|
||||||
|
{
|
||||||
|
public static void FixedRun(this EcsSystems systems)
|
||||||
|
{
|
||||||
|
systems.GetRunner<IEcsFixedRunSystem>().FixedRun(systems);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,4 +12,12 @@
|
|||||||
foreach (var item in targets) item.LateRun(systems);
|
foreach (var item in targets) item.LateRun(systems);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class IEcsLateRunSystemExtensions
|
||||||
|
{
|
||||||
|
public static void LateRun(this EcsSystems systems)
|
||||||
|
{
|
||||||
|
systems.GetRunner<IEcsLateRunSystem>().LateRun(systems);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user