mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-18 01:54:35 +08:00
fix templates
This commit is contained in:
parent
c9404c9c73
commit
c1599bbae1
@ -5,7 +5,7 @@ namespace #NAMESPACE#
|
|||||||
{
|
{
|
||||||
sealed class #SCRIPTNAME# : MonoBehaviour
|
sealed class #SCRIPTNAME# : MonoBehaviour
|
||||||
{
|
{
|
||||||
private EcsWorld<DefaultWorld> _world;
|
private EcsDefaultWrold _world;
|
||||||
private EcsPipeline _pipeline;
|
private EcsPipeline _pipeline;
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
@ -13,7 +13,7 @@ namespace #NAMESPACE#
|
|||||||
// is needed to integrate the internal debugging tool with the unity environment
|
// is needed to integrate the internal debugging tool with the unity environment
|
||||||
UnityDebugService.Init();
|
UnityDebugService.Init();
|
||||||
|
|
||||||
_world = new EcsWorld<DefaultWorld>();
|
_world = new EcsDefaultWrold();
|
||||||
_pipeline = EcsPipeline.New()
|
_pipeline = EcsPipeline.New()
|
||||||
// register your systems here, for example:
|
// register your systems here, for example:
|
||||||
// .Add (new TestSystem1 ())
|
// .Add (new TestSystem1 ())
|
||||||
|
@ -5,10 +5,10 @@ using DCFApixels.DragonECS;
|
|||||||
|
|
||||||
namespace #NAMESPACE#
|
namespace #NAMESPACE#
|
||||||
{
|
{
|
||||||
public class #SCRIPTNAME# : IEcsRunSystem, IEcsInject<EcsWorld<DefaultWorld>>
|
public class #SCRIPTNAME# : IEcsRunSystem, IEcsInject<EcsDefaultWrold>
|
||||||
{
|
{
|
||||||
private EcsWorld<DefaultWorld> _world;
|
private EcsDefaultWrold _world;
|
||||||
public void Inject(EcsWorld<DefaultWorld> obj) => _world = obj;
|
public void Inject(EcsDefaultWrold obj) => _world = obj;
|
||||||
|
|
||||||
public void Run(EcsPipeline pipeline)
|
public void Run(EcsPipeline pipeline)
|
||||||
{
|
{
|
||||||
|
@ -15,10 +15,10 @@ namespace #NAMESPACE#
|
|||||||
IEcsLateRunSystem,
|
IEcsLateRunSystem,
|
||||||
IEcsFixedRunSystem,
|
IEcsFixedRunSystem,
|
||||||
IEcsDestroySystem,
|
IEcsDestroySystem,
|
||||||
IEcsInject<EcsWorld<DefaultWorld>>
|
IEcsInject<EcsDefaultWrold>
|
||||||
{
|
{
|
||||||
private EcsWorld<DefaultWorld> _world;
|
private EcsDefaultWrold _world;
|
||||||
public void Inject(EcsWorld<DefaultWorld> obj) => _world = obj;
|
public void Inject(EcsDefaultWrold obj) => _world = obj;
|
||||||
|
|
||||||
public void PreInit(EcsPipeline pipeline)
|
public void PreInit(EcsPipeline pipeline)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user