コード例 #1
0
        public SparkSystem(Vector2 startPosition)
        {
            sparkParticles = new Spark[MaxParticles];

            for (int i = 0; i < MaxParticles; i++)
            {
                sparkParticles[i] = new Spark(i, startPosition);     //seed i och startposition vector2
            }
        }
コード例 #2
0
        public SparkSystem(Vector2 startPosition)
        {
            sparkParticles = new Spark[MaxParticles];

                for (int i = 0; i < MaxParticles; i++)
                {
                    sparkParticles[i] = new Spark(i, startPosition); //seed i och startposition vector2
                }
        }