Recently I have been trying to track down why my quiz master scripts stop executing after returning from a FadeIn() call to my Fader script. (Full Project Code)
Problem Method
using UnityEngine;
using core;
using System.Collections;
namespace control
{
public class GameManager : MonoBehaviour
{
public IEnumerator StartGame(string subject, int questionsToAsk)
{
fader.FadeOut();
yield return new WaitForSeconds(waitTime);
startScreen.gameObject.SetActive(false);
quizScreen.gameObject.SetActive(true);
scoreKeeper.CheckReferences();
quizControl.LoadQuestions(subject, questionsToAsk);
quizControl.SetNextQuestion();
fader.FadeIn();
yield return new WaitForSeconds(waitTime);
timer.WaitingForAnswer(true);
timer.StartTimer(quizControl.GetAllottedTime());
yield return null;
}
}
}
The execution gets to fader.FadeIn()
executes that code but then stops before executing the next command.
I’ve Debug.Logged every single line of code and found no issues. It gets to the end of the Fade in process, even acknowledges that it is at the end, but never executes the next command.
I’ve linked the complete Script Library above and would appreciate any suggestions as I’ve reached a point where literally slamming my head into a wall is more productive.