Beispiel #1
0
        /// <summary>
        /// Updates the particle array and custom datas. When taken from the particle system,
        /// the particle order is different on each update. So, the values will need to be sorted
        /// so that spawning can be properly handled.
        /// </summary>
        void UpdateCustomParticleData()
        {
            sortedParticleCount = SpriteExploder.GetParticles(particles);

            if (sortedParticleCount > 0)
            {
                SpriteExploder.GetCustomParticleData(customDatas);
                QuickSortParticles(0, sortedParticleCount - 1);
            }
        }