Esempio n. 1
0
    /// <summary>
    /// Return a tile from the tile pool with corresponding tileCode
    /// </summary>
    /// <param name="tileCode">Tile of tilecode to return</param>
    /// <returns>Return a tile from the tile pool with corresponding tileCode</returns>
    public Tile GetNewTileFromFactory(int tileCode)
    {
        Tile tile = m_tileFactory.GetNewTile(tileCode);

        tile.OnSpawnTile(this);

        return(tile);
    }