Esempio n. 1
0
    public void UpdateLevelHeight(int newHeight)
    {
        Height = newHeight;

        //remove all tiles with position y greater of equal to height
        BlockingTiles.RemoveAll((t) => t.GridPosition.y >= newHeight);
        MoveableTiles.RemoveAll((t) => t.GridPosition.y >= newHeight);
    }
Esempio n. 2
0
 public void RemoveBlockingTileAtPosition(Vector2Int pos)
 {
     BlockingTiles.RemoveAll(info => info.GridPosition == pos);
 }
Esempio n. 3
0
 public void UpdateLevelWidth(int newWidth)
 {
     Width = newWidth;
     BlockingTiles.RemoveAll(t => t.GridPosition.x >= newWidth);
     MoveableTiles.RemoveAll(t => t.GridPosition.x >= newWidth);
 }