public Face(MainWindow _mainWindow) { mainWindow = _mainWindow; canvas = mainWindow.canvas; }
public Tile(int _x, int _y, Rectangle _rect, MainWindow _mainWindow) { x = _x; // These are the array coords y = _y; rect = _rect; mainWindow = _mainWindow; tileArray = mainWindow.tileArray; tileSize = mainWindow.TileSize; canvas = mainWindow.canvas; }