private void ChangeScoreDifficulty(Enums.GameDifficulty newDifficulty) { gameDifficulty = newDifficulty; switch (gameDifficulty) { case Enums.GameDifficulty.Easy: score = scoreEasy; break; case Enums.GameDifficulty.Medium: score = scoreMedium; break; case Enums.GameDifficulty.Hard: score = scoreHard; break; case Enums.GameDifficulty.VeryHard: score = scoreVeryHard; break; default: Debug.LogError("Difficulty not Set Correctly"); break; } SetScore(score); }
private void OnChangedGameDifficulty(Enums.GameDifficulty difficulty) { switch (difficulty) { case Enums.GameDifficulty.Easy: spawnTimeDivisor = gameDifficultyData.easyDifficulty.spawnIntervalModifier; break; case Enums.GameDifficulty.Medium: spawnTimeDivisor = gameDifficultyData.mediumDifficulty.spawnIntervalModifier; break; case Enums.GameDifficulty.Hard: spawnTimeDivisor = gameDifficultyData.hardDifficulty.spawnIntervalModifier; break; case Enums.GameDifficulty.VeryHard: spawnTimeDivisor = gameDifficultyData.veryHardDifficulty.spawnIntervalModifier; break; default: Debug.LogError("Difficulty not Set Correctly"); break; } }
public void ChangeDifficultyText(Enums.GameDifficulty newDifficulty) { switch (newDifficulty) { case Enums.GameDifficulty.Easy: this.difficultyText.text = easyString; this.difficultyText.color = colorsData.colorEasy; break; case Enums.GameDifficulty.Medium: this.difficultyText.text = mediumString; this.difficultyText.color = colorsData.colorMedium; break; case Enums.GameDifficulty.Hard: this.difficultyText.text = hardString; this.difficultyText.color = colorsData.colorHard; break; case Enums.GameDifficulty.VeryHard: this.difficultyText.text = veryHardString; this.difficultyText.color = colorsData.colorVeryHard; break; default: Debug.LogError("Difficulty not Set Correctly"); break; } }
private void UpdateGameDifficulty(Enums.GameDifficulty difficulty) { switch (difficulty) { case Enums.GameDifficulty.Easy: velocityModifier = gameDifficultyData.easyDifficulty.bulletVelocityModifier; break; case Enums.GameDifficulty.Medium: velocityModifier = gameDifficultyData.mediumDifficulty.bulletVelocityModifier; break; case Enums.GameDifficulty.Hard: velocityModifier = gameDifficultyData.hardDifficulty.bulletVelocityModifier; break; case Enums.GameDifficulty.VeryHard: velocityModifier = gameDifficultyData.veryHardDifficulty.bulletVelocityModifier; break; default: Debug.LogError("GameDifficulty Not Set Correctly"); break; } }
private void OnChangedGameDifficulty(Enums.GameDifficulty newDifficulty) { uiManagerView.ChangeDifficultyText(newDifficulty); }