Update EntitySystem.cs

This commit is contained in:
ALEXTANG
2022-08-08 17:24:07 +08:00
parent 02e5d60ddc
commit 9b318e0a0b

View File

@@ -28,6 +28,8 @@ namespace TEngine.EntityModule
{ {
GameEventMgr.Instance.AddEventListener<int,Action<EcsObject>>(EntityEvent.AttachToEntity, AttachToEntity); GameEventMgr.Instance.AddEventListener<int,Action<EcsObject>>(EntityEvent.AttachToEntity, AttachToEntity);
Update(true); Update(true);
MonoUtility.AddFixedUpdateListener(FixedUpdate);
MonoUtility.AddLateUpdateListener(LateUpdate);
} }
/// <summary> /// <summary>
/// Key -> HashSet(type) / Value -> Stack(EcsObject) /// Key -> HashSet(type) / Value -> Stack(EcsObject)