Наследование: AcademyPopcorn.MovingObject
Пример #1
0
        public override IEnumerable<GameObject> ProduceObjects()
        {
            if (this.IsDestroyed == true)
            {
                explosion[0] = new Explosion(this.TopLeft, new MatrixCoords(1, 0));
                explosion[1] = new Explosion(this.TopLeft, new MatrixCoords(-1, 0));
                explosion[2] = new Explosion(this.TopLeft, new MatrixCoords(0, -1));
                explosion[3] = new Explosion(this.TopLeft, new MatrixCoords(0, 1));

                return this.explosion;
            }

            return new List<GameObject>();
        }