예제 #1
0
        protected override void SetupEntities()
        {
            _componentDatabase.PreAllocateComponents(StructComponent1TypeId, EntityCount);
            _componentDatabase.PreAllocateComponents(StructComponent2TypeId, EntityCount);

            base.SetupEntities();

            var batchBuilder = _batchBuilderFactory.Create <StructComponent, StructComponent2>();

            _componentBatch = batchBuilder.Build(_collection);
        }
예제 #2
0
 protected override void RebuildBatch()
 {
     _batch.Dispose();
     _batch = _batchBuilder.Build(ObservableGroup);
 }