Example #1
0
 protected override void OnCreate()
 {
     base.OnCreate();
     m_PositionQuery = GetEntityQuery(
         ComponentType.ReadOnly <LocalToWorld>(),
         ComponentType.ReadOnly <ColorComponent>());
     SpacePartition = new HighwaySpacePartition();
 }
Example #2
0
 public ParallelWriter(HighwaySpacePartition sp)
 {
     writer        = sp.HashMap.AsParallelWriter();
     mBucketLength = sp.BucketLength;
 }