public void Initialize( ComponentGroup group, UnityEngine.Vector3 [] vertices, UnityEngine.Vector3 [] normals, NativeCounter.Concurrent counter ) { Particles = group.GetComponentDataArray <Particle>(); Positions = group.GetComponentDataArray <Position>(); Triangles = group.GetComponentDataArray <Triangle>(); Variants = group.GetSharedComponentDataArray <SimpleParticle>(); Vertices = UnsafeUtility.AddressOf(ref vertices[0]); Normals = UnsafeUtility.AddressOf(ref normals[0]); Counter = counter; }
public void Initialize( SimpleParticle variant, ComponentGroup group, UnityEngine.Vector3 [] vertices, UnityEngine.Vector3 [] normals, NativeCounter.Concurrent counter ) { _particles = group.GetComponentDataArray <Particle>(); _positions = group.GetComponentDataArray <Position>(); _triangles = group.GetComponentDataArray <Triangle>(); _vertices = UnsafeUtility.AddressOf(ref vertices[0]); _normals = UnsafeUtility.AddressOf(ref normals[0]); _variant = variant; _counter = counter; }