Dodano przejście między domkami
This commit is contained in:
parent
cc9ccd26ba
commit
c2f5acee58
@ -80,12 +80,14 @@ namespace CzokoŚmieciarka.WPFv2
|
|||||||
}
|
}
|
||||||
|
|
||||||
IEnumerable<TrashCan> trashCans = new List<TrashCan>();
|
IEnumerable<TrashCan> trashCans = new List<TrashCan>();
|
||||||
WPFHouse house = new WPFHouse(new Coords(i, i), trashCans);
|
if(i != 6)
|
||||||
Objects[i, i] = house;
|
{
|
||||||
Grid.SetRow(Objects[i, i].Image, i);
|
WPFHouse house = new WPFHouse(new Coords(i, i), trashCans);
|
||||||
Grid.SetColumn(Objects[i, i].Image, i);
|
Objects[i, i] = house;
|
||||||
Board.Children.Add(Objects[i, i].Image);
|
Grid.SetRow(Objects[i, i].Image, i);
|
||||||
|
Grid.SetColumn(Objects[i, i].Image, i);
|
||||||
|
Board.Children.Add(Objects[i, i].Image);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Objects[2,7] = new WPFDump(new TypeOfGarbage(GarbageType.Glass,1,1), 10000,new Coords(2,7));
|
Objects[2,7] = new WPFDump(new TypeOfGarbage(GarbageType.Glass,1,1), 10000,new Coords(2,7));
|
||||||
Grid.SetColumn(Objects[2, 7].Image, 2);
|
Grid.SetColumn(Objects[2, 7].Image, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user