Example #1
0
    private void BreakTileAt(int x, int y)
    {
        Tile tileToBreak = allTiles[x, y];

        if (tileToBreak != null && tileToBreak.TType == TileType.Breakable)
        {
            if (particleManager != null)
            {
                particleManager.BreakTileFxAt(tileToBreak.BreakableValue, x, y);
            }
            tileToBreak.BreakTile();
        }
    }