Ejemplo n.º 1
0
 public bool DoMoveDown()
 {
     transform.position += new Vector3(0, -grid.squareHeight, 0);
     if (IsValidBlockPosition())
     {
         UpdateGrid();
         return(true);
     }
     else
     {
         transform.position += new Vector3(0, grid.squareHeight, 0);
         game.gainPoints(grid.DeleteFullRows());
         game.SpawnNext();
         enabled = false;
         return(false);
     }
 }