Exemplo n.º 1
0
        public SplitterSystem()
        {
            particleArray = new SplitterParticle[maxParticles];

            for (int i = 0; i < particleArray.Length; i++)
            {
                particleArray[i] = new SplitterParticle(rand);
            }
        }
Exemplo n.º 2
0
        public SplitterSystem(Texture2D splitterTexture, Vector2 explosionPos)
        {
            _splitterTexture = splitterTexture;
            particleArray = new SplitterParticle[maxParticles];

            for (int i = 0; i < particleArray.Length; i++)
            {
                particleArray[i] = new SplitterParticle(rand, _splitterTexture, explosionPos);
            }
        }