Exemple #1
0
    public void RemoveTile(WorldTile tile)
    {
        if (ownedTiles == null)
        {
            return;
        }

        ownedTiles.Remove(tile);

        if (ownedTiles.Count == 0)
        {
            playerLost.Invoke(this);
            playerLost.RemoveAllListeners();
        }
    }