void checkHighScore() { print("check highscore called"); switch (DifficultyLevel.getDifficultyLevel()) { case 2: HS = easyHighScore; calculateHighScore(); easyHighScore = HS; break; case 3: HS = normalHighScore; calculateHighScore(); normalHighScore = HS; break; case 4: HS = hardHighScore; calculateHighScore(); hardHighScore = HS; break; case 5: HS = insaneHighScore; calculateHighScore(); insaneHighScore = HS; break; } }
// GET: DifficultyLevel public List <DifficultyLevel> Get() { DifficultyLevel d = new DifficultyLevel(); return(d.getDifficultyLevel()); }
void Start() { diff = DifficultyLevel.getDifficultyLevel(); //Check what difficulty was picked in the menu StartCoroutine(SpawnerSwitcher()); }