Ejemplo 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);
    }
Ejemplo n.º 2
0
 public void RemoveBlockingTileAtPosition(Vector2Int pos)
 {
     BlockingTiles.RemoveAll(info => info.GridPosition == pos);
 }
Ejemplo n.º 3
0
 public void AddBlockingTile(BlockingTileSpawnInfo info)
 {
     BlockingTiles.Add(info);
 }
Ejemplo n.º 4
0
 public void UpdateLevelWidth(int newWidth)
 {
     Width = newWidth;
     BlockingTiles.RemoveAll(t => t.GridPosition.x >= newWidth);
     MoveableTiles.RemoveAll(t => t.GridPosition.x >= newWidth);
 }