예제 #1
0
    private void BreakTileAt(int x, int y)
    {
        Tile tileToBreak = tileArray[x, y];

        if (tileToBreak != null && tileToBreak.tileType == Tile.TileType.Breakable)
        {
            if (m_particleManager != null)
            {
                m_particleManager.BreakTileFXAt(tileToBreak.breakableValue, x, y);
            }
            tileToBreak.BreakTile();
        }
    }
예제 #2
0
    void BreakTileAt(int x, int y)
    {
        Tile tileToBreak = m_allTiles[x, y];

        if (tileToBreak != null && tileToBreak.tileType == TileType.Breakable)
        {
            if (m_particleManager != null)
            {
                m_particleManager.BreakTileFXAt(tileToBreak.breakableValue, x, y, 0);
            }
            tileToBreak.BreakTile();
        }
    }
예제 #3
0
    void BreakTileAt(int x, int y)
    {
        Tile tileToBreak = m_allTiles[x, y];

        if (tileToBreak != null && tileToBreak.tileType == TileType.Breakable)
        {
            // Run before to make sure we show the right FX before breakableValue changes
            if (m_particleManager != null)
            {
                m_particleManager.BreakTileFXAt(tileToBreak.breakableValue, x, y);
            }

            tileToBreak.BreakTile();
        }
    }