public void hardDifficulty() { GamePrefences.SetEasyDifficultyState(0); GamePrefences.SetMediumDifficultyState(0); GamePrefences.SetHardDifficultyState(1); EasySign.SetActive(false); MediumSign.SetActive(false); HardSign.SetActive(true); }
private void setCorrectCheckSignAndState(string state) { switch (state) { case "easy": EasySign.SetActive(true); MediumSign.SetActive(false); HardSign.SetActive(false); coinDetailText.text = String.Format(coinDetailTextFormat, 1); GamePreferences.SetEasyDifficultyState(1); GamePreferences.SetMediumDifficultyState(0); GamePreferences.SetHardDifficultyState(0); highScore.text = GamePreferences.GetEasyDifficultyHighscore().ToString(); break; case "medium": EasySign.SetActive(false); MediumSign.SetActive(true); HardSign.SetActive(false); coinDetailText.text = String.Format(coinDetailTextFormat, 2); GamePreferences.SetEasyDifficultyState(0); GamePreferences.SetMediumDifficultyState(1); GamePreferences.SetHardDifficultyState(0); highScore.text = GamePreferences.GetMediumDifficultyHighscore().ToString(); break; case "hard": EasySign.SetActive(false); MediumSign.SetActive(false); HardSign.SetActive(true); coinDetailText.text = String.Format(coinDetailTextFormat, 3); GamePreferences.SetEasyDifficultyState(0); GamePreferences.SetMediumDifficultyState(0); GamePreferences.SetHardDifficultyState(1); highScore.text = GamePreferences.GetHardDifficultyHighscore().ToString(); break; } }
void SetInitialDifficulty(string difficulty) { switch (difficulty) { case "easy": // EasySign.SetActive(true); MediumSign.SetActive(false); HardSign.SetActive(false); break; case "medium": EasySign.SetActive(false); HardSign.SetActive(false); break; case "hard": EasySign.SetActive(false); MediumSign.SetActive(false); break; } }