Beispiel #1
0
 //
 public override IEnumerable<EnvironmentObject> ProduceObjects()
 {
     List<EnvironmentObject> result= new List<EnvironmentObject>();
     if (!this.Exists)
     {
         Snow snow= new Snow(this.Bounds.TopLeft.X,this.Bounds.TopLeft.Y-1);
         result.Add(snow);
     }
     return result;
 }
        public override IEnumerable <EnvironmentObject> ProduceObjects()
        {
            var producedObjects = new List <EnvironmentObject>();

            if (!this.Exists)
            {
                var snow = new Snow(this.Bounds.TopLeft.X, this.Bounds.TopLeft.Y - 1);
                producedObjects.Add(snow);
            }

            return(producedObjects);
        }