示例#1
0
 protected override void OnCreate()
 {
     base.OnCreate();
     _renderedItemPositionComputationSystem = World.GetExistingSystem <RenderedItemPositionComputationSystem>();
     _graphicsBuffers = new GraphicsBuffer[2];
 }
示例#2
0
 protected override void OnCreate()
 {
     _corners      = new Vector3[4];
     _cameraPlanes = new NativeArray <float4>(6, Allocator.Persistent);
     _renderedItemPositionComputationSystem = World.GetExistingSystem <RenderedItemPositionComputationSystem>();
 }