Exemple #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);
 }
Exemple #2
0
 public void AddPuzzle(Vector2 v, Puzzle puzzle)
 {
     AddPuzzle((int)v.X / Tile.tileSize, (int)v.Y / Tile.tileSize, puzzle);
 }