public SerializedParticle[] CloneAsSerializedParticles() { SerializedParticle[] serializedParticles = new SerializedParticle[particles.Length]; for (int i = 0; i < serializedParticles.Length; i++) { serializedParticles[i] = particles[i].CloneAsSerializedParticle(); } return(serializedParticles); }
public SerializedParticle CloneAsSerializedParticle() { SerializedParticle particle = new SerializedParticle( position, velocity, rotation, size, lifetime, startLifetime, playgroundLife, playgroundStartLifetime, playgroundEndLifetime, playgroundLifetimeSubtraction, color, sourcePosition, startingSize ); return(particle); }
public SerializedParticle CloneAsSerializedParticle () { SerializedParticle particle = new SerializedParticle( position, velocity, rotation, size, lifetime, startLifetime, playgroundLife, playgroundStartLifetime, playgroundEndLifetime, playgroundLifetimeSubtraction, color, sourcePosition, startingSize ); return particle; }
public SerializedParticle[] CloneAsSerializedParticles () { SerializedParticle[] serializedParticles = new SerializedParticle[particles.Length]; for (int i = 0; i<serializedParticles.Length; i++) serializedParticles[i] = particles[i].CloneAsSerializedParticle(); return serializedParticles; }