protected override void OnCreate()
 {
     _query = GetEntityQuery(new EntityQueryDesc()
     {
         All = new ComponentType[] {
             ComponentType.ReadOnly <DistortionComponent>(),
         },
     });
     _batchMatrices          = new NativeList <Matrix4x4>(RenderDistortionSystem.BatchNum * Cv.InstanceLimit, Allocator.Persistent);
     _renderDistortionSystem = World.GetOrCreateSystem <RenderDistortionSystem>();
 }
 public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem)
 {
     _prefabEntity = conversionSystem.GetPrimaryEntity(prefab);
     RenderDistortionSystem.Initialize(materialDistortion);
 }