public void LoadQuestion() { int x = unAnsweredQuestions.Count; int y = Random.Range(0, x); if (x == 0) { sceneUI.GameHasEnded(); } else if (x > 0) { NextQuestion(unAnsweredQuestions[y]); unAnsweredQuestions.RemoveAt(y); } UIManager.instance.PlayGenericSound(); TurnButtonsBackOn(); }
public void WrongAnswer() { if (currentShields > 0) { currentShields -= 1; } else if (currentLives > 0) { currentLives -= 1; if (currentLives == 0) { LifeTracker(); ShieldTracker(); sceneUI.GameHasEnded(); } } LifeTracker(); ShieldTracker(); }