Пример #1
0
 public void SetGame(Game game, Texture image = null, System.Action doAfterSet = null)
 {
     this.Game      = game;
     this.board     = game.Board;
     layout         = new BoardLayout(board, piecesParent);
     ghostGenerator = new GhostPieceGenerator(pieceGenerator, layout, removeTime);
     SyncRotation();
     Generate(image, doAfterSet);
 }
Пример #2
0
 public GhostPieceGenerator(PieceGenerator pieceGenerator, BoardLayout layout, float removeTime)
 {
     this.pieceGenerator = pieceGenerator;
     this.layout         = layout;
     this.removeTime     = removeTime;
 }