DragonECS/test/TestSystem.cs

29 lines
660 B
C#
Raw Normal View History

2023-02-05 19:59:45 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2023-03-12 02:48:51 +08:00
using UnityEngine;
2023-02-05 19:59:45 +08:00
namespace DCFApixels.DragonECS
{
2023-03-12 02:48:51 +08:00
public class TestSystem : IEcsInject<SharedData>, IEcsSimpleCycleSystem
2023-02-05 19:59:45 +08:00
{
private SharedData _sharedData;
2023-03-12 02:02:39 +08:00
public void Inject(SharedData obj) => _sharedData = obj;
2023-03-12 02:02:39 +08:00
public void Init(EcsSession session)
2023-02-05 19:59:45 +08:00
{
2023-03-12 02:48:51 +08:00
Debug.Log("Init");
2023-02-05 19:59:45 +08:00
}
2023-03-12 02:02:39 +08:00
public void Run(EcsSession session)
2023-02-05 19:59:45 +08:00
{
2023-03-12 02:48:51 +08:00
Debug.Log("Run");
2023-02-05 19:59:45 +08:00
}
2023-03-12 02:02:39 +08:00
public void Destroy(EcsSession session)
2023-02-05 19:59:45 +08:00
{
2023-03-12 02:48:51 +08:00
Debug.Log("Destroy");
2023-02-05 19:59:45 +08:00
}
}
}