mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
add runtime injects method
This commit is contained in:
parent
130b732851
commit
2cc2adf4c4
@ -143,6 +143,7 @@ namespace DCFApixels.DragonECS
|
|||||||
|
|
||||||
public static class InjectSystemExtensions
|
public static class InjectSystemExtensions
|
||||||
{
|
{
|
||||||
|
public static void Inject<T>(EcsPipeline self, T data) => self.GetRunner<IEcsInject<T>>().Inject(data);
|
||||||
public static EcsPipeline.Builder Inject<T>(this EcsPipeline.Builder self, T data)
|
public static EcsPipeline.Builder Inject<T>(this EcsPipeline.Builder self, T data)
|
||||||
{
|
{
|
||||||
if (data == null) throw new ArgumentNullException();
|
if (data == null) throw new ArgumentNullException();
|
||||||
|
Loading…
Reference in New Issue
Block a user