private void UpdateDifficulty() //mecanica = MinigameGananciaController { // Divide o progresso do jogo em 5 segmentos, e // estabelece um nível de dificuldade para cada um. if (fillAmount <= 0.2) { MinigameIraController.SetDifficulty(1); MinigamePreguiçaController.SetDifficulty(1); mecanica.SetDifficulty(1); MinigameGulaController.SetDifficulty(1); MinigameOrgulhoController.SetDifficulty(1); MiniGameGananciaController.SetDifficulty(1); MinigameLuxuriaController.SetDifficulty(1); MinigameInvejaController.SetDifficulty(1); } else if (fillAmount <= 0.4) { MinigameIraController.SetDifficulty(2); MinigamePreguiçaController.SetDifficulty(2); mecanica.SetDifficulty(2); MinigameGulaController.SetDifficulty(2); MinigameOrgulhoController.SetDifficulty(2); MiniGameGananciaController.SetDifficulty(2); MinigameLuxuriaController.SetDifficulty(2); MinigameInvejaController.SetDifficulty(2); } else if (fillAmount <= 0.6) { MinigameIraController.SetDifficulty(3); MinigamePreguiçaController.SetDifficulty(3); mecanica.SetDifficulty(3); MinigameGulaController.SetDifficulty(3); MinigameOrgulhoController.SetDifficulty(3); MiniGameGananciaController.SetDifficulty(3); MinigameLuxuriaController.SetDifficulty(3); MinigameInvejaController.SetDifficulty(3); } else if (fillAmount <= 0.8) { MinigameIraController.SetDifficulty(4); MinigamePreguiçaController.SetDifficulty(4); mecanica.SetDifficulty(4); MinigameGulaController.SetDifficulty(4); MinigameOrgulhoController.SetDifficulty(4); MiniGameGananciaController.SetDifficulty(4); MinigameLuxuriaController.SetDifficulty(4); MinigameInvejaController.SetDifficulty(4); } else { MinigameIraController.SetDifficulty(5); MinigamePreguiçaController.SetDifficulty(5); mecanica.SetDifficulty(5); MinigameGulaController.SetDifficulty(5); MinigameOrgulhoController.SetDifficulty(5); MiniGameGananciaController.SetDifficulty(5); MinigameLuxuriaController.SetDifficulty(5); MinigameInvejaController.SetDifficulty(5); } }
private void UpdateDifficulty() //mecanica = MinigameGananciaController { MinigameIraController.SetDifficulty(difficulty); MinigamePreguiçaController.SetDifficulty(difficulty); mecanica.SetDifficulty(difficulty); MinigameGulaController.SetDifficulty(difficulty); MinigameOrgulhoController.SetDifficulty(difficulty); MiniGameGananciaController.SetDifficulty(difficulty); MinigameLuxuriaController.SetDifficulty(difficulty); MinigameInvejaController.SetDifficulty(difficulty); }