AcademyPopcorn.ExplodingBlock.ProduceObjects C# (CSharp) Метод

ProduceObjects() публичный Метод

public ProduceObjects ( ) : System.Collections.Generic.IEnumerable
Результат System.Collections.Generic.IEnumerable
        public override System.Collections.Generic.IEnumerable<GameObject> ProduceObjects()
        {
            List<GameObject> splashObjects = new List<GameObject>();
            if (this.IsDestroyed)
            {
                splashObjects.Add(new Explosion(this.topLeft, new char[,] { { '+' } }, new MatrixCoords(-1, 0)));
                splashObjects.Add(new Explosion(this.topLeft, new char[,] { { '+' } }, new MatrixCoords(1, 0)));
                splashObjects.Add(new Explosion(this.topLeft, new char[,] { { '+' } }, new MatrixCoords(0, 1)));
                splashObjects.Add(new Explosion(this.topLeft, new char[,] { { '+' } }, new MatrixCoords(0, -1)));
            }
            return splashObjects;
        }