Exemple #1
0
    public void ShouldUpdateScoreText()
    {
        scoreManager.AttachScoreText(scoreText);

        List <IBlock> blockList = CreateBlockListMock();

        scoreManager.OnDeleteBlocks(blockList, 1);

        scoreText.Received().UpdateText(Arg.Any <string>());
    }
Exemple #2
0
    void CreateScoreManager(IGameText scoreText)
    {
        if (_scoreManager != null)
        {
            RemoveOnDeleteEventListener(_scoreManager);
        }

        _scoreManager = new ScoreManager();
        if (scoreText != null)
        {
            _scoreManager.AttachScoreText(scoreText);
        }

        AddOnDeleteEventListener(_scoreManager);
    }
Exemple #3
0
    void CreateScoreManager(IGameText scoreText)
    {
        if(_scoreManager != null)
        {
            RemoveOnDeleteEventListener(_scoreManager);
        }

        _scoreManager = new ScoreManager();
        if (scoreText != null)
        {
            _scoreManager.AttachScoreText(scoreText);
        }

        AddOnDeleteEventListener(_scoreManager);
    }