public void StartTimer() { TimeManager.AddQuestionTimeObserver(this); questionSystemController = QuestionSystemController.Instance; double averageTime = 0; for (int i = 0; i < questionSystemController.questionList.Count; i++) { averageTime += questionSystemController.questionList [i].idealTime; } double totalTime = (averageTime / questionSystemController.questionList.Count) * 7.5; totalTime = Mathf.Round((float)totalTime * 10f) / 10f; questionSystemController.timerSlider.maxValue = (float)totalTime; TimeManager.StartQuestionTimer(delegate(float timeLeft) { ReduceTimeLeftCallBack(timeLeft); }, (float)totalTime); }