Exemplo n.º 1
0
 public void AddPuzzle(int x, int y, Puzzle puzzle)
 {
     if (tiles[x, y].puzzle == null)
     {
         puzzleCache.Add(new Point(x, y));
     }
     tiles[x, y].puzzle = puzzle;
     puzzle.Initialize(this, x, y);
 }
Exemplo n.º 2
0
 public void AddPuzzle(Vector2 v, Puzzle puzzle)
 {
     AddPuzzle((int)v.X / Tile.tileSize, (int)v.Y / Tile.tileSize, puzzle);
 }