private void LoadLevel(int level) { stopInput = true; timerReactionStoped = true; timerStartStoped = false; timerStart = 0; timerReaction = 0; correctAnswers = 0; float addPointsF; switch (level) { case 1: dificulty = "easy"; multiplicationRate = 1; break; case 2: dificulty = "easy"; multiplicationRate = 1.1f; break; case 3: dificulty = "medium"; multiplicationRate = 1.2f; break; case 4: dificulty = "medium"; multiplicationRate = 1.3f; break; case 5: dificulty = "hard"; multiplicationRate = 1.4f; break; } addPointsF = basePoints * multiplicationRate; addPoints = (int)addPointsF; reactionTime = (timeNameChangeBase - 1) * multiplicationRate; switch (dificulty) { case "easy": namesList = GlobalsObject.ResetEasyNames(); break; case "medium": namesList = GlobalsObject.ResetMediumNames(); break; case "hard": namesList = GlobalsObject.ResetHardNames(); break; } Globals.actualLevel = level; GUIControlObject.ShowNewLevel(level); GUIControlObject.ShowNewScore(Globals.score); GUIControlObject.ChangeLifes(lifesSprites[Globals.lifesLeft]); ChangePlayerName(dificulty); position = new Vector2(w / 4, h / 2); blablabla.Play(); GUIControlObject.ShowNewSaidName("Okay we are going to start!", position, 25); }