Exemplo n.º 1
0
 /// <summary>
 /// Spawn the tetromino at the given position.
 /// Returns false if the tetromino could not be spawned.
 /// </summary>
 public bool Spawn(TetrisBoard board, Vector2Int position)
 {
     this.Position = position;
     this.Board    = board;
     return(board.IsValidPosition(position, this));
 }