Esempio n. 1
0
    /// <summary>
    /// Вызывается после получения выброшенных очков
    /// </summary>
    protected override void ApplyCompletedThrow()
    {
        _throwsLeft--;

        if (GameplayManager.CurrentEntity == EntityType.Player)
        {
            OnChangedNumberThrows?.Invoke(_throwsLeft / 2);
        }

        base.ApplyCompletedThrow();
    }
Esempio n. 2
0
    protected override void RestartGame()
    {
        base.RestartGame();

        OnRestartGame?.Invoke();

        _throwsLeft = _numberThrows;

        PlayerScore = 0;
        EnemyScore  = 0;

        OnChangedNumberThrows?.Invoke(_throwsLeft / 2);
    }