Exemple #1
0
    /// <summary>
    /// Called by <see cref="GameStats"/>. Don't call it yourself
    /// as the game coordinates other things.
    /// </summary>
    /// <param name="point"></param>
    /// <returns></returns>
    public async ValueTask PillEaten(CellIndex point)
    {
        await _ghostHouseDoor.PillEaten();

        await IncreaseScoreBy(Points.From(10));

        _levelStats.PillEaten(point);
    }