Exemplo n.º 1
0
    public void InformEnemyDestroyed(Enemy_Clase enemy)
    {
        //if (this.enemiesDestroyed.ContainsKey(enemy.Enemy_Color) == false)
        //    enemiesDestroyed.Add(enemy.Enemy_Color, 0);

        //enemiesDestroyed[enemy.Enemy_Color]++;

        this.enemiesCountByAnswer[enemy.Enemy_Color]--;

        CheckEnemiesDestroyedCount(enemy);
    }
Exemplo n.º 2
0
    private void CheckEnemiesDestroyedCount(Enemy_Clase enemy)
    {
        if (this.enemiesCountByAnswer[enemy.Enemy_Color] <= 0)
        //if (this.enemiesDestroyed[enemy.Enemy_Color] <= 0)
        {
            this.DestroyAll();

            this.AppController.InformQuestionWasAnswered(this.AnswersPoint[enemy.Enemy_Color]);
            //AppController_Class.Instance.InformQuestionWasAnswered(this.AnswersPoint[enemy.Enemy_Color]);

            //ResetEnemiesStatistics();
        }
    }