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

                sourcePosition,
                startingSize
                );

            return(particle);
        }
예제 #3
0
		public SerializedParticle CloneAsSerializedParticle ()
		{
			SerializedParticle particle = new SerializedParticle(
				position,
				velocity,
				rotation,
				size,
				lifetime,
				startLifetime,
				playgroundLife,
				playgroundStartLifetime,
				playgroundEndLifetime,
				playgroundLifetimeSubtraction,
				color,

				sourcePosition,
				startingSize
			);
			return particle;
		}
예제 #4
0
		public SerializedParticle[] CloneAsSerializedParticles ()
		{
			SerializedParticle[] serializedParticles = new SerializedParticle[particles.Length];
			for (int i = 0; i<serializedParticles.Length; i++)
				serializedParticles[i] = particles[i].CloneAsSerializedParticle();
			return serializedParticles;
		}